Skip to content
gist.link ↗

deleteWorksheet

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

The deleteWorksheet mutation on the Sheets API.

sheets:mutation:deleteWorksheet

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 {
deleteWorksheet(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 DeleteWorksheet($id: String!, $expectedRevision: Int) { deleteWorksheet(id: $id, expectedRevision: $expectedRevision) }",
"variables": {
"id": "example",
"expectedRevision": 10
}
}
JSON