Skip to content
TriedDocs
Account

Delete asset

Delete an uploaded asset and its stored file.

DELETEhttps://api.tried.com.au/delete-asset/{asset_id}

Deletes an asset and removes its file from local disk or S3. Agents that still point on_hold_music at the deleted asset_id can no longer load it, so change them first.

Request#

Path parameter Type Description
asset_id string The asset ID, for example asset_3c8e1a5f7b9d2e4a6c0f1b3d.

This endpoint takes no body.

Example request#

curl -X DELETE https://api.tried.com.au/delete-asset/asset_3c8e1a5f7b9d2e4a6c0f1b3d \
  -H "Authorization: Bearer $TRIED_API_KEY"
await fetch("https://api.tried.com.au/delete-asset/asset_3c8e1a5f7b9d2e4a6c0f1b3d", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
import os, requests

requests.delete(
    "https://api.tried.com.au/delete-asset/asset_3c8e1a5f7b9d2e4a6c0f1b3d",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)

Response#

204 No Content

The response has no body.

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the admin scope. Dashboard members get The member role is read-only.
404 Asset asset_3c8e1a5f7b9d2e4a6c0f1b3d not found in this workspace.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.