presentation | string | Yes | - | Google Slides presentation URL or ID. You must ask the user for it if not provided. |
identifier_type | string or SelectableOption | Yes | - | Method to identify the slide to delete. Available options: ‘slide_number’ - Identify slide by its position in the presentation (1-based indexing) ‘slide_id’ - Identify slide by its unique Google Slides object ID Slide Number is recommended for most use cases as it’s easier to work with. Slide IDs are unique identifiers that don’t change but are harder to determine. WARNING: Deleting a slide is permanent and cannot be undone through the API. |
slide_number | integer | No | - | Number of the slide to delete (1-based indexing, starting from 1). REQUIRED when identifier_type is ‘slide_number’. MUST BE NULL/EMPTY when identifier_type is ‘slide_id’ - clear this field if identifier_type changes to ‘slide_id’. Must be a positive integer. Example: 1 for first slide, 2 for second slide, etc. Note: Cannot delete the only remaining slide in a presentation. |
slide_id | string | No | - | Unique Google Slides object ID of the slide to delete. REQUIRED when identifier_type is ‘slide_id’. MUST BE NULL/EMPTY when identifier_type is ‘slide_number’ - clear this field if identifier_type changes to ‘slide_number’. Example format: ‘g1a82910c99_0_0’ You can find slide IDs in the Google Slides API or by inspecting the presentation. Note: Cannot delete the only remaining slide in a presentation. |