Delete qURL
delete_qurlPermanently revoke a qURL and all its access tokens, stopping access immediately. Irreversible action for compromised links or departed users; returns confirmation and flags already-revoked cases.
Instructions
Permanently revoke a qURL — the link and every access token under it stop working immediately. This action is irreversible. Use this when you want to cut off access entirely (compromised link, departed user, end-of-engagement). Use update_qurl instead when you only need to shorten/extend the expiration, retag, or rename — those preserve the existing access tokens. Use extend_qurl when you only need to push the expiration out. Idempotent: the API returns 404 for re-deletes, never-existed IDs, and resources owned by another API key (ownership-mismatch is collapsed into 404 server-side to avoid existence disclosure); this tool swallows all three. Branch on was_already_revoked to distinguish the no-op case from a successful revoke on this call. When the ID came from user input and ownership matters, call get_qurl first — a 200 confirms ownership; a thrown 404 is equally ambiguous on that endpoint too. Returns a confirmation payload. By default the resource is excluded from list_qurls; pass status: "revoked" to see it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_id | Yes | The resource public key, CRID, or legacy r_ ID to revoke (all tokens; q_ display IDs are not accepted). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Human-readable confirmation message | |
| revoked | Yes | ||
| resource_id | Yes | ||
| was_already_revoked | Yes | True when the API responded 404 (resource was already revoked or never existed). Agents that need to distinguish 'I revoked it' from 'it was already gone' should branch on this. |