Skip to content
gist.link ↗

deleteWorkbook

Mutation Sheets API — POST https://sheets.api.gist.link/graphql

The deleteWorkbook mutation on the Sheets API.

sheets:mutation:deleteWorkbook

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

type Mutation {
deleteWorkbook(id: String!, expectedRevision: Int): Boolean!
}
Argument Type Required Description
id String! Yes —
expectedRevision Int No —

Boolean!.

Terminal window
curl https://sheets.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation DeleteWorkbook($id: String!, $expectedRevision: Int) { deleteWorkbook(id: $id, expectedRevision: $expectedRevision) }",
"variables": {
"id": "example",
"expectedRevision": 10
}
}
JSON