delete_file_upload
Delete a staged upload right away: pass the url a create_file_upload link returned, with the same workspace slug. Use it to revoke a staged url that was shared by mistake, or one you no longer need. Only a url from a create_file_upload link for this workspace is accepted; anything else is refused and nothing is deleted. A url that is already gone counts as deleted. Files already in a Files surface are not affected (use delete_file for those). Editor role required.
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": {
"slug": "<slug>",
"url": "<url>"
},
"name": "delete_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The `url` the `create_file_upload` link's curl returned. | |
| slug | Yes | The workspace slug (bare or org-prefixed) the upload link was made for. |