Delete a Picture from an Excel Worksheet – Aspose.Cells Cloud API

This REST API deletes a picture from an Excel worksheet.

REST API

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

Request Parameters

Parameter Name Type Location Required Description
name string path Yes The name of the workbook file.
sheetName string path Yes The name of the worksheet that contains the picture.
pictureIndex integer path Yes The zero‑based index of the picture to be deleted.
folder string query No The folder where the workbook is stored.
storageName string query No The name of the storage service (optional).

You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make the call with cURL.

Error Handling

HTTP Code Meaning Sample Error Payload
200 Picture deleted successfully. { "Code": 200, "Status": "OK" }
400 Bad request – invalid parameters. { "Code": 400, "Message": "Invalid pictureIndex." }
401 Unauthorized – missing/invalid token. { "Code": 401, "Message": "Access token is missing or invalid." }
404 Not found – workbook, worksheet, or picture does not exist. { "Code": 404, "Message": "Resource not found." }
500 Internal server error. { "Code": 500, "Message": "Unexpected server error." }

Cloud SDK Family

Using an SDK is the fastest way to develop. An SDK handles low‑level details so you can focus on your project. 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: