delete_resource
Hard-delete a project resource. Emits project.resource.deleted before the row disappears so listeners see the snapshot.
Purpose
Hard-delete a project resource by UUID. Delegates to an Action that emits project.resource.deleted with the row snapshot before the delete executes so downstream listeners capture the final state. Scoped to the caller's team.
Required ability
project-resource:delete
Input schema
{
"type": "object",
"required": ["resource_id"],
"properties": {
"resource_id": {
"type": "string",
"description": "UUID of the resource to delete."
}
}
}Output shape
{
"data": {
"resource_id": "rsc_01HX...",
"deleted": true
}
}Example prompts
"Delete resource
rsc_01HX...."
"Remove the Onboarding PDF resource from my project."
Failure modes
RESOURCE_NOT_FOUND— unknownresource_id, or the parent project is outside the token's scope.TOKEN_MISSING_ABILITY— token lacksproject-resource:delete.
Related
unlink_resource— clear a Telegram link without deleting the row.list_resources- Resources API
How is this guide?