Delete a Row in an Excel Worksheet – Aspose.Cells Cloud API Guide

This REST API deletes a row from an Excel worksheet.

Prerequisites

  • A valid JWT Authorization token.
  • The workbook must be stored in a supported Aspose Cloud storage (default or custom).
  • The target folder (if specified) must exist in the chosen storage.

REST API

DELETE https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/cells/rows/{rowIndex}

Request parameters

Parameter Name Type Path / Query Required Description
name string path Yes The workbook name.
sheetName string path Yes The worksheet name.
rowIndex integer path Yes Zero‑based index of the row to delete.
startrow integer query No Index of the first row to delete (normally the same as rowIndex).
totalRows integer query No Number of consecutive rows to delete.
updateReference boolean query No When true (default), formulas, named ranges, and other references are updated after the deletion.
folder string query No Folder that contains the workbook.
storageName string query No Name of the storage service.

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows a complete, executable call.

Possible HTTP response codes

Code Meaning Description
200 OK The row was deleted successfully.
400 Bad Request Missing or invalid parameters (e.g., non‑numeric rowIndex).
401 Unauthorized Invalid or missing JWT token.
404 Not Found Specified workbook, worksheet, or row does not exist.
500 Internal Server Error Unexpected server error; see error response for details.

Error response example

{
  "Code": 400,
  "Message": "Invalid row index supplied."
}

Cloud SDK Family

Using an SDK is the best way to speed up development. An SDK abstracts low‑level details so you can focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.

The following code examples demonstrate how to make calls to Aspose.Cells web services using various SDKs:

Related operations