Delete a provisioned MediaAsset

DELETE {{baseUrl}}/mediaAssets/:mediaAssetId?deleteMode=DELETE_DERIVATIONS

Deletes a MediaAsset resource by identifier. If DeleteChildren is passed in as the mode, all the assets with the parentMediaAssetId matching the ID will be deleted. If DeleteDerivatives is set as the mode, all the assets with the masterMediaAssetId matching the ID will be deleted.

Request Params

KeyDatatypeRequiredDescription
deleteModestringDeleteMode decides whether to delete all the immediate children or all assets with the asset's ID as their masterMediaAssetId.

HEADERS

KeyDatatypeRequiredDescription
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call
for a resource, set the if-match parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted only if the etag you
provide matches the resource's current etag value.
opc-request-idstringThe client request ID for tracing.
Acceptstring