How to Delete All Pictures in an Excel Worksheet with Aspose.Cells Cloud
This REST API deletes all pictures in a worksheet.
Prerequisites
- An active Aspose.Cells Cloud account with a valid OAuth 2.0 access token.
- API version 3.0 (or later) is required; earlier versions are deprecated.
- The target Excel file must be stored in a supported storage location (default or custom).
Version Compatibility
The endpoint follows the Cells Cloud 3.0 API specification. Ensure that your client libraries and request URLs target api.aspose.cloud/v3.0.
REST API
DELETE https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/pictures
Request parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | string | Path | Name of the Excel file. |
| sheetName | string | Path | Name of the worksheet containing pictures. |
| folder | string | Query | Folder where the file is stored. |
| storageName | string | Query | Name of the storage service. |
Error Responses
| HTTP Code | Description |
|---|---|
| 401 | Unauthorized – missing or invalid token. |
| 404 | Not Found – the specified file, worksheet, or page‑break index does not exist. |
| 400 | Bad Request – malformed request syntax or invalid parameters. |
| 500 | Internal Server Error – an unexpected condition was encountered. |
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 call the API with cURL.
Cloud SDK Family
Using an SDK is the fastest way to develop. An SDK handles low‑level details so you can focus on your business logic. See 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:
See also:
- /pictures/delete/ – Delete a specific picture from a worksheet.
- /pictures/add/ – Add a picture to a worksheet.