Delete a Chart from a Worksheet using Aspose.Cells Cloud REST API

This REST API deletes a worksheet chart by its index.

For related operations, see the Add a Chart and Get Chart pages.

REST API

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

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

Request parameters

Parameter Name Type Location Description
name string path The workbook name.
sheetName string path The worksheet name.
chartIndex integer path The zero‑based index of the chart to delete.
folder string query The folder that contains the workbook.
storageName string query The name of the storage to use.

Response

{
    "Status":"OK",
    "Code":200
}

Response Status Codes

Code Meaning Description
200 OK Compression succeeded; response contains compressed file details.
400 Bad Request Missing or invalid parameters (e.g., unsupported file type).
401 Unauthorized Invalid or missing JWT token.
413 Payload Too Large Uploaded file exceeds size limit.
500 Internal Server Error Unexpected server error.

How to Use the PutWorksheetAddChart API with SDKs

PutWorksheetAddChart API Specification

The OpenAPI Specification defines a publicly accessible programming interface and lets you perform 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 how to make a call to the Cloud API with cURL.

The API returns the following status codes:

Code Description
200 Chart deleted successfully
400 Bad request (e.g., invalid index)
401 Unauthorized (missing or invalid JWT)
404 Workbook, worksheet, or chart not found
500 Server error

Error handling: For detailed error information, refer to the generic error model in the OpenAPI specification.

Use Aspose.Cells Cloud SDKs

Using an SDK is the best way to speed up development. An SDK abstracts low‑level details, allowing you to 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 call Aspose.Cells web services using various SDKs: