delete_drive_file

Delete or trash a file.

destructiveGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

tools/call
{
  "name": "delete_drive_file",
  "arguments": {
    "fileId": "<fileId>"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/delete_drive_file \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fileId":"<fileId>"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
fileIdrequiredstringthe Drive file ID.
permanentbooleanIf true, permanently delete. If false, move to trash (default false).Default: false

Result

Every tool answers {notification, data, human_action}; data carries:

  • success — Boolean indicating successful deletion.

Example

delete_drive_file(fileId="1XYZ...")
delete_drive_file(fileId="1XYZ...", permanent=True)

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude