Skip to main content

Delete Drive item

Move a file or folder to the Drive trash, or delete it permanently.

Command in the Google Workspace toolkit · id ooa.google/drive_delete_item · 5 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Item IDStringNoFile or folder id; or give item_path instead.
PermanentBooleanNofalseDelete for good instead of moving to the trash.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.
Item pathStringNoPath of the file or folder under My Drive, used instead of item_id.