curl -X DELETE "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789" \
-H "Authorization: Bearer YOUR_JWT"
const response = await fetch(
'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789',
{
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_JWT'
}
}
);
if (response.ok) {
console.log('Asset deleted successfully');
}
{
"message": "Asset successfully deleted",
"id": "asset789"
}
{
"error": {
"code": "CONFLICT",
"message": "Cannot delete asset: referenced in components or packages"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Asset not found"
}
}
Assets
Delete Asset
Delete an asset from the project
DELETE
/
app
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
assets
/
{id}
curl -X DELETE "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789" \
-H "Authorization: Bearer YOUR_JWT"
const response = await fetch(
'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789',
{
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_JWT'
}
}
);
if (response.ok) {
console.log('Asset deleted successfully');
}
{
"message": "Asset successfully deleted",
"id": "asset789"
}
{
"error": {
"code": "CONFLICT",
"message": "Cannot delete asset: referenced in components or packages"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Asset not found"
}
}
Delete an asset from the project. Assets referenced by packages or components cannot be deleted.
Assets referenced by packages, components, or content items cannot be deleted. Use the Get Usage endpoint to check references before deletion.
Path Parameters
string
required
The unique identifier of the organization
string
required
The unique identifier of the project
string
required
The unique identifier of the asset
Response
Returns a success message on successful deletion.curl -X DELETE "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789" \
-H "Authorization: Bearer YOUR_JWT"
const response = await fetch(
'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789',
{
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_JWT'
}
}
);
if (response.ok) {
console.log('Asset deleted successfully');
}
{
"message": "Asset successfully deleted",
"id": "asset789"
}
{
"error": {
"code": "CONFLICT",
"message": "Cannot delete asset: referenced in components or packages"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Asset not found"
}
}