Skip to content
Open CastalyConsole

Video

Delete an asset

Delete one asset by ID.

This page documents the Modelflare asset-management route. Calls require a valid media API key, an available media channel, and the required permission.

POST https://modelflare.dev/volc/asset/DeleteAsset

Use a Modelflare API key:

Terminal windowbash
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"

Send Idempotency-Key with create, update, and delete requests. Retrying the same key for the same user replays the saved response without repeating the mutation.

Delete one asset by ID.

Field Type Required Description Example
Id string Yes Asset ID to delete. asset-20260528140922-d9646
model string No Billing model. Defaults to volc-asset. volc-asset

JSON example:

JSON
{
"model": "volc-asset",
"Id": "asset-20260528140922-d9646"
}

cURL example:

Terminal windowbash
curl --request POST https://modelflare.dev/volc/asset/DeleteAsset \
--header "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "volc-asset",
"Id": "asset-20260528140922-d9646"
}'

The request succeeded.

Field Type Required Description Example
Id string Yes Deleted asset ID. asset-20260528140922-d9646
Deleted boolean Yes Whether the asset was deleted. true

Response example:

JSON
{
"Id": "asset-20260528140922-d9646",
"Deleted": true
}
Status Meaning
400 The request is invalid.
401 The API key is missing or unauthorized.

Error body example (when returned):

JSON
{
"error": {
"code": "invalid_request",
"message": "Request validation failed."
}
}

Image, video, and audio creation are asynchronous. After receiving an asset ID, call GetAsset and use the asset://<ID> reference only when the status is Active.