drive_trash_file
Move a Google Drive file or folder to the 30-day trash; name and confirmation checks prevent accidental or permanent deletion.
Instructions
Move one Google Drive file or folder to the Drive trash (files.update with trashed=true), where Drive keeps it for 30 days and it can be restored. Never a permanent delete: this server has no files.delete and no emptyTrash. Two guards: expectedName must equal the file's current name exactly, so a wrong or stale id is refused; and without confirm: true the call changes nothing and returns the file it would trash. A folder additionally needs confirmFolder: true, because trashing a folder trashes its contents. Refuses a file that is already in the trash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | Drive file or folder id to trash. | |
| account | Yes | Configured Gmail account alias, e.g. work, personal, support. | |
| confirm | No | Must be true to trash. Omitted or false: returns what would be trashed and changes nothing. | |
| expectedName | Yes | The file's current name, exactly. Refused when it differs from the name Drive reports for fileId. | |
| confirmFolder | No | Required in addition to confirm when fileId is a folder; trashing a folder trashes everything inside it. |