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.
Deleting an asset is permanent: the stored file and the asset are removed, and it cannot be restored. Metabind does not track where an asset is used, so the delete does not check whether components, content or packages still refer to it — make sure nothing does before you delete it. The
force query parameter is accepted for compatibility and has no effect.To hide an asset without removing the file, set its status to deleted instead; that can be undone.Path Parameters
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"
}
}