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.
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. |