Remove a Paragraph by Index from a PowerPoint Presentation

Introduction

This article shows how you can remove a paragraph by index in PowerPoint presentations using Aspose.Slides for Cloud API. You can use our REST API with any language: .NET, Java, PHP, Ruby, Python, ะก++, and much more.

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex} DELETE Removes 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 Sub-shape path (e.g. “3”, “3/shapes/2)

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

cURL Example

SDK Source

The Aspose for Cloud SDKs can be downloaded from the following page: Available SDKs.

SDK Examples