Delete Folder – Aspose.Cells Cloud API
Excel API : Delete Folder
Web API
DELETE https://api.aspose.cloud/v4.0/cells/storage/folder/{path}
Function Description
The deleteFolder API removes a specified folder from Aspose.Cells Cloud storage. It can delete the folder alone or, when the recursive flag is set to true, remove the folder together with all of its contents.
Request Parameters
The request parameters of the deleteFolder API are:
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| path | String | Path | The path of the folder to be deleted. |
| storageName | String | Query | The name of the storage that contains the folder. |
| recursive | Boolean | Query | Set to true to delete the folder and all of its contents. |
Response
A successful call returns HTTP 200 OK with an empty body:
{}
Error Handling
| HTTP Status | Description |
|---|---|
| 400 | Bad request – missing or invalid parameters. |
| 401 | Unauthorized – authentication token required or invalid. |
| 404 | Not found – the specified folder does not exist. |
| 409 | Conflict – folder cannot be deleted because it contains items and recursive is not set. |
| 500 | Internal server error – unexpected condition on the server. |
OpenAPI Specification
The OpenAPI Specification defines a publicly accessible programming interface and allows you to perform REST interactions directly from a web browser.
Excel API SDK
Using an SDK is the best way to speed up development. An SDK handles 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 make calls to Aspose.Cells web services using various SDKs: