Delete Shapes from a Slide

Introduction

With Aspose.Slides Cloud, you can easily delete shapes from a PowerPoint presentation. The following methods allow you to delete shapes at specified indices or all shapes at once from a slide. The methods return information about the remaining shapes.

DeleteShape

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex} DELETE Deletes a shape from a presentation slide. DeleteShape

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
slideIndex integer path true The 1-based index of the slide contaning the shapes.
shapeIndex integer path true The 1-based index of the shape to delete.
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.
subShape string query false Sub-shape path (e.g. “3”, “3/shapes/2”)

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

Examples

MyFolder/MyPresentation.pptx document contains three shapes on the first slide. Delete the second shape.

cURL Solution

SDK Solutions

DeleteShapes

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes DELETE Deletes shapes from a presentation slide. DeleteShapes

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
slideIndex integer path true The 1-based index of the slide contaning the shapes.
shapes string query false The 1-based indices of the shapes to delete. Delete all by default.
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

MyFolder/MyPresentation.pptx document contains three shapes on the first slide. Delete the first and third shapes.

cURL Solution

SDK Solutions

SDKs

Check Available SDKs to learn how to add an SDK to your project.