Delete an OLE object in an Excel worksheet

This page explains how to delete a specific OLE object from a worksheet in an Excel workbook using Aspose.Cells Cloud. An OLE object can be a linked image, chart, or any embedded object that Excel stores as a separate entity.

REST API

DELETE https://api.aspose.cloud/v4.0/cells/{name}/worksheets/{sheetName}/oleobjects/{oleObjectIndex}

Request Parameters

Parameter name Type Location Description
name string path The workbook name.
sheetName string path The worksheet name.
oleObjectIndex integer path Index of the OLE object to be deleted.
folder string query The folder that contains the workbook. (optional)
storageName string query The name of the storage service. (optional)

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 how to make the call with cURL.

Response details

HTTP status Description Sample JSON
200 OK The OLE object was deleted successfully. { "Code": 200, "Status": "OK" }
401 Unauthorized Missing or invalid JWT token. { "Code": 401, "Message": "Access token is missing or invalid." }
404 Not Found The specified workbook, worksheet, or OLE object index does not exist. { "Code": 404, "Message": "OLE object index out of range." }
400 Bad Request Required parameters are missing or malformed. { "Code": 400, "Message": "Invalid request parameters." }

Handle these responses in your application by checking the status code and displaying the accompanying message.

Cloud SDK Family

Using an SDK is the best way to speed up development. An SDK handles 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 call Aspose.Cells web services using various SDKs: