Delete qURL
delete_qurlPermanently revoke a qURL so its link and all access tokens stop working immediately. Use this irreversible action to cut off access entirely for compromised links, departed users, or end-of-engagement.
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). It does not revoke links minted by the upload tools, which belong to the file connector; those cannot be revoked from this server. Use update_qurl instead when you only need to shorten the resource's expiration, retag, or rename, and extend_qurl to keep a link open longer — those preserve the existing access tokens. 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. A revoked resource can still appear in list_qurls without a status filter; use status: "revoked" to select revoked resources.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource_id": "<resource_id>"
},
"name": "delete_qurl"
}
}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. |