DELETE /asset/v1/content/assets/{id}

Overview 

Deletes an asset.

URL Parameters 

NameTypeDescription
idnumberRequiredThe ID of the asset to delete
isCDNDeleteBooleanPermanently deletes the file and its URL in Akamai when the associated file is deleted in Content Builder. A value of 1 permanently deletes the file. If isCDNDelete is unspecified or if the value is 0, it doesn’t permanently delete the file.

Responses 

StatusNameTypeDescription
200  OK
 messagestringThe resource was successfully deleted.
    
400  Bad request
 MessagestringThe error message
 ErrorCodenumberThe specific error code
 DocumentationstringAny specific documentation for the error
    
403  Permission error
 MessagestringThe error message
 ErrorCodenumberThe specific error code
 DocumentationstringAny specific documentation for the error

Usage 

Example Request 

Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com
DELETE /asset/v1/content/assets/{id}?isCdnDelete=1
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN

Example Response 

HTTP/1.1 200 OK