Search code examples
rubygoogle-apigoogle-drive-apigoogle-slidesgoogle-slides-api

Delete one slide from a Google Presentation using API


How is it possible to delete a slide from a Google Presentation using Google API?

In https://developers.google.com/slides/samples/slides it is said: The Slides API allows you to create, move, and delete slides. However, I'm unable to find how to do it.


Solution

  • You can use DeleteObjectRequest for tihs https://developers.google.com/slides/reference/rest/v1/presentations/request#DeleteObjectRequest Pass your slide id to objectId.