Skip to main content
DELETE
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
components
/
{componentId}
/
assets
/
{assetId}
Delete Component Asset
curl --request DELETE \
  --url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/components/{componentId}/assets/{assetId}

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
componentId
string
required
Component ID
assetId
string
required
Asset ID
Assets referenced by published packages cannot be deleted. The asset must not be included in any package.

Response

{
  "message": "Asset successfully deleted",
  "id": "asset123"
}

Error Responses

Asset Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Asset not found"
  }
}

Asset In Use

{
  "error": {
    "code": "ASSET_IN_USE",
    "message": "Cannot delete: asset is referenced by package(s) 1.0.0, 1.1.0",
    "details": {
      "referencedByPackages": ["1.0.0", "1.1.0"]
    }
  }
}

Code Examples

curl -X DELETE "https://api.metabind.ai/v1/organizations/org123/projects/proj456/components/c123/assets/asset123" \
  -H "Authorization: Bearer YOUR_API_KEY"