For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sample appsIntegrationsDiscordPlaygroundDevEx repo
GuidesSDK ReferenceAPI Reference
GuidesSDK ReferenceAPI Reference
  • TwelveLabs API
    • Introduction
    • Authentication
  • API Reference
    • Manage indexes
    • Upload content
      • Direct uploads
        • POSTCreate an asset
        • GETRetrieve an asset
        • GETList assets
        • DELDelete an asset
        • PATCHUpdate the user-defined metadata of an asset
        • DELDelete the user-defined metadata of an asset
      • Multipart uploads
      • Video indexing tasks
    • Index content
    • Manage videos
    • Manage entities
    • Any-to-video search
    • Create embeddings v2
    • Create embeddings v1
    • Analyze and segment videos
    • Error codes
LogoLogo
Sample appsIntegrationsDiscordPlaygroundDevEx repo
API ReferenceUpload contentDirect uploads

Delete an asset

DELETE
https://api.twelvelabs.io/v1.3/assets/:asset_id
DELETE
/v1.3/assets/:asset_id
$curl -X DELETE "https://api.twelvelabs.io/v1.3/assets/6298d673f1090f1100476d4c?force=true" \
> -H "x-api-key: <apiKey>"
1{}
This method deletes the specified asset. This action cannot be undone. By default, the platform checks whether any indexed assets reference the asset. If references exist, the platform rejects the request with a `409 Conflict` error. To skip this check and delete the asset anyway, set the `force` query parameter to `true`. The platform unlinks any entity associations. Before deleting, you can inspect existing references: - [`GET`](/v1.3/api-reference/index-content/list-indexed-assets-by-asset) `/assets/{asset_id}/indexed-assets` returns a list of the indexed assets that will block deletion unless the `force` query parameter is set to `true`. - [`GET`](/v1.3/api-reference/entities/list-entities-by-asset) `/assets/{asset_id}/entities` returns a list of the entities whose associations the platform will unlink.
Was this page helpful?
Previous

Update the user-defined metadata of an asset

Next
Built with

This method deletes the specified asset. This action cannot be undone.

By default, the platform checks whether any indexed assets reference the asset. If references exist, the platform rejects the request with a 409 Conflict error. To skip this check and delete the asset anyway, set the force query parameter to true. The platform unlinks any entity associations.

Before deleting, you can inspect existing references:

  • GET /assets/{asset_id}/indexed-assets returns a list of the indexed assets that will block deletion unless the force query parameter is set to true.
  • GET /assets/{asset_id}/entities returns a list of the entities whose associations the platform will unlink.

Authentication

x-api-keystring

Your API key.

Note

You can find your API key on the API Keys page.

Path parameters

asset_idstringRequired
The unique identifier of the asset to delete.

Query parameters

forcebooleanOptionalDefaults to false

When set to true, the platform deletes the asset even if indexed assets reference it. When set to false or omitted, the request fails with 409 Conflict if references exist.

Default: false.

Response

The asset has been successfully deleted.

Errors

400
Bad Request Error
409
Conflict Error