MailMasker API
Claude Code
Drive

Delete a file in Trash forever

POST/api/v1/drive/files/:id/purge

Who can use this: Any signed-in accountAs Markdown

Only for a file already in Trash, and it can't be undone. To delete a file that isn't in Trash, use Delete a file.

Parameters

NameWhereWhat it is
id required path The file's id.e.g. 42

Good to know

  • A file that isn't in your Trash answers 404.