Delete a Table Row

Introduction

Aspose.Slides Cloud API provides you with the ability to efficiently manage table content in PowerPoint presentations, including deleting rows. This functionality allows you to simplify the process of updating and editing data directly within the slides. Use the following method to delete rows from a table.

DeleteTableRow

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex} DELETE Deletes a table row in a presentation saved in a storage. DeleteTableRow

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 slide.
shapeIndex integer path true The 1-based index of a shape (must be a table).
rowIndex integer path true The 1-based index of a row.
withAttachedRows boolean query false Specifies whether rows that share merged cells with the target row should be deleted.
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.

Examples

In the default storage, the document MyPresentation.pptx contains a table (the second shape) with five rows on the first slide. Delete the third row and rows that share merged cells with the target row.

The table

cURL Solution

SDK Solutions

The result:

The table

SDKs

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