Delete Paragraphs

Introduction

Aspose.Slides Cloud API allows you to read, add, modify and delete text paragraphs from shapes located on special slides (Master, Layout, Notes) in PowerPoint presentations. Use the following methods to delete paragraphs from presentation shapes.

DeleteSpecialSlideParagraphs

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/{slideType}/shapes/{shapeIndex}/paragraphs DELETE Deletes all paragraphs from a shape located on a special slide in a presentation saved in a storage. DeleteSpecialSlideParagraphs

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 a regular slide.
slideType SpecialSlideType path true The type of a special slide.
shapeIndex integer path true The 1-based index of a shape.
paragraphs string query false The indices of the paragraphs to be deleted. 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 file.
storage string query false The name of the storage contaning the folder.
subShape string query false The path to a child shape (e.g. “3”, “3/shapes/2”).

DeleteSpecialSlideParagraph

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/{slideType}/shapes/{shapeIndex}/paragraphs/{paragraphIndex} DELETE Deletes a paragraph from a shape located on a special slide in a presentation saved in a storage. DeleteSpecialSlideParagraph

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 a regular slide.
slideType SpecialSlideType path true The type of a special slide.
shapeIndex integer path true The 1-based index of a shape.
paragraphIndex integer path true The 1-based index of a paragraph 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.
subShape string query false The path to a child shape (e.g. “3”, “3/shapes/2”).

Examples

The document MyPresentation.pptx saved in the default storage contains two text boxes on the Master of the first slide. The second text box contains four paragraphs. Delete the third paragraph.

Master Slide

cURL Solution

SDK Solutions

The result:

Master Slide

SDKs

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