Delete Paragraphs

Introduction

Deletion of paragraphs typically pertains to editing text blocks in slides. The following methods allow you to delete a specific paragraph or range of paragraphs.

DeleteParagraph

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex} DELETE Deletes a paragraph in a shape. DeleteParagraph

Request Parameters

Name Type Location Required Description
name string path true The presentation file name.
slideIndex integer path true The 1-based index of the presentation slide.
shapeIndex integer path true The 1-based index of the shape.
paragraphIndex integer path true The 1-based index of the paragraph.
password string header false The password to open the presentation.
folder string query false The folder where the presentation file is located.
storage string query false The storage where the presentation file is located.
subShape string query false The sub-shape path (e.g. “3”, “3/shapes/2”).

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

Examples

In the document MyPresentation.pptx, the first slide contains one shape (text box) with three paragraphs. Delete the first paragraph from the shape.

cURL Solution

SDK Solutions

DeleteParagraphs

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs DELETE Deletes a range of paragraphs in a shape. DeleteParagraphs

Request Parameters

Name Type Location Required Description
name string path true The presentation file name.
slideIndex integer path true The 1-based index of the presentation slide.
shapeIndex integer path true The 1-based index of the shape.
paragraphs string query false The indices of paragraphs to be deleted. Delete all by default.
password string header false The password to open the presentation.
folder string query false The folder where the presentation file is located.
storage string query false The storage where the presentation file is located.
subShape string query false The sub-shape path (e.g. “3”, “3/shapes/2”).

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

Examples

In the document MyPresentation.pptx, the sixth slide contains one shape (text box) with five paragraphs. Delete the paragraphs with indices 1, 3, and 5.

cURL Solution

SDK Solutions

SDKs

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