Skip to content

Commit

Permalink
Moves deleted documents to trash instead of immediately deleting them (
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss authored Jan 17, 2024
1 parent 3e649cd commit 1c7864c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/plugins/dispatch_google/drive/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def copy_file(client: Any, folder_id: str, file_id: str, new_file_name: str):

def delete_file(client: Any, file_id: str):
"""Deletes a folder or file from a Google Drive."""
return make_call(client.files(), "delete", fileId=file_id, supportsAllDrives=True)
return make_call(client.files(), "trash", fileId=file_id, supportsAllDrives=True)


def mark_as_readonly(
Expand Down

0 comments on commit 1c7864c

Please sign in to comment.