Delete a slide or element
delete_objectDelete a slide or page element (shape, image, table, video, line, group) by object ID. Removes the item and its contents; also works for groups and slides with speaker notes.
Instructions
Deletes a slide or a page element (shape, image, table, video, line, group) by object id — batchUpdate deleteObject. Deleting a slide removes all its elements and speaker notes; deleting a group removes its children. There is no undo through the API (version history lives in the Slides UI). It cannot delete the whole presentation — that is a Drive file operation outside this server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"presentation_id": "<presentation_id>",
"object_id": "<object_id>"
},
"name": "delete_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_id | Yes | The object id of the slide or page element to delete (from list_slides). | |
| presentation_id | Yes | The presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output. |