Early bird discounts live! Claim your offer
MemberPass Logo

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 — unknown resource_id, or the parent project is outside the token's scope.
  • TOKEN_MISSING_ABILITY — token lacks project-resource:delete.

How is this guide?

On this page

MemberPass is a product designed by you — for you.

No boardroom full of executives deciding what we ships next. Our roadmap always shaped by you with your feedback.

Share feedback or a request