diff --git a/.vscode/settings.json b/.vscode/settings.json index 5cfc5c7fc6b6..b8d00b662cbd 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -39,7 +39,7 @@ ], "[python]": { "editor.codeActionsOnSave": { - "source.organizeImports": false + "source.organizeImports": "never" } }, } 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(