Delete Slides

Introduction

Aspose.Slides Cloud allows you to delete slides from a PowerPoint presentation. Using the request methods below, you can delete a single slide, multiple slides with specified indexes, or all slides at once.

DeleteSlide

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex} DELETE Deletes a slide from a presentation at the specified index. DeleteSlide

Request Parameters

Name Type Location Required Description
name string path true The file name of a presentation.
slideIndex integer path true The 1-based index of the slide to be deleted.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
storage string query false The name of the storage contaning the folder.

In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.

Examples

Delete the first slide from MyFolder/MyPresentation.pptx document that contains three slides and was saved to MyStorage.

cURL Solution

SDK Solutions

DeleteSlides

API Information

API Type Description Resource
/slides/{name}/slides DELETE Deletes slides from a presentation at the specified indices. DeleteSlides

Request Parameters

Name Type Location Required Description
name string path true The file name of a presentation.
slides string query false The 1-based indices of the slides to be deleted. If the indices are not specified, all slides are deleted and one blank slide is added.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
storage string query false The name of the storage contaning the folder.

In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.

Examples

Delete the slides with indices 1, 3, 5 from MyPresentation.pptx document that contains five slides and was saved in the default storage root folder. Use my_password string to open the presentation.

cURL Solution

SDK Solutions

SDKs

Using an SDK (API client) is the quickest way for a developer to speed up development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Slides Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.