Upload

Destroys an asset or resource

POST
/v1_1/{cloud_name}/{resource_type}/destroy

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.

resource_type*string

The type of resource (image, video, or raw).

Value in

  • "image"
  • "video"
  • "raw"

Request Body

application/json

The asset to destroy 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.

public_id*string

The public ID of the asset to destroy.

type?|||||

All supported delivery types.

invalidate?boolean

Whether to invalidate CDN cached copies of the asset.

Defaultfalse
notification_url?string

URL to receive a notification when the operation is complete.

Formaturi

Response Body

application/json

application/json

application/json

application/json

application/json

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