Skip to content
gist.link ↗

emptyTrash

Mutation Drive API — POST https://drive.api.gist.link/graphql

The emptyTrash mutation on the Drive API.

drive:mutation:emptyTrash

The calling IAM key must hold this permission (or a wildcard that covers it: drive:mutation:* or drive:*) and the access token must have been minted with audience=drive. See Permissions.

type Mutation {
emptyTrash: Boolean!
}

This mutation takes no arguments.

Boolean!.

Terminal window
curl https://drive.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation EmptyTrash { emptyTrash }",
"variables": {}
}
JSON