diff --git a/src/dispatch/plugins/dispatch_google/drive/drive.py b/src/dispatch/plugins/dispatch_google/drive/drive.py index d74fa5e8b13a..c66985388dd9 100644 --- a/src/dispatch/plugins/dispatch_google/drive/drive.py +++ b/src/dispatch/plugins/dispatch_google/drive/drive.py @@ -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(