curl --request DELETE \
--url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/components/{id}Delete a component
curl --request DELETE \
--url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/components/{id}deleted instead, which prevents future use while maintaining package references.{
"message": "Component successfully deleted",
"id": "c123"
}
{
"error": {
"code": "COMPONENT_IN_USE_BY_DRAFT",
"message": "Component cannot be deleted as it is used by 2 draft content type(s)",
"details": {
"contentTypes": [
{ "id": "ct123", "name": "Article" },
{ "id": "ct456", "name": "Product Page" }
]
}
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Component not found"
}
}
curl -X DELETE "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/components/c123" \
-H "Authorization: Bearer YOUR_JWT"