Assets

Delete asset by asset ID

POST
/v1_1/{cloud_name}/asset/destroy

Deletes an asset using its immutable asset ID.

Authorization

AuthorizationBasic <token>

Basic authentication using Cloudinary API Key and API Secret.

In: header

Path Parameters

cloud_name*string

The cloud name of your product environment.

Request Body

application/json

The asset to delete and related options.

api_key?string

The API key to use for the request. This is automatically computed by the Cloudinary's SDKs.

timestamp?integer

The timestamp to use for the request in unix time. This is automatically computed by the Cloudinary's SDKs.

Formatint64
signature?string

(Required for signed REST API calls) Used to authenticate the request and based on the parameters you use in the request. When using the Cloudinary SDKs for signed requests, the signature is automatically generated and added to the request. If you manually generate your own signed POST request, you need to manually generate the signature parameter and add it to the request together with the api_key and timestamp parameters.

asset_id*asset_id

A 32-character hexadecimal asset ID.

Match^[0-9a-f]{32}$
invalidate?boolean

Whether to invalidate CDN cache. Default is false.

notification_url?string

URL to receive completion notification.

Formaturi
callback?string

URL for redirect after operation completion.

Formaturi

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1_1/my_cloud/asset/destroy" \  -H "Content-Type: application/json" \  -d '{    "asset_id": "string"  }'
{  "result": "ok"}