Delete share
nextcloud_delete_shareRevoke a Nextcloud file share by share ID to remove recipient access. Use this to clean up or disable sharing links and permissions.
Instructions
Revoke one share.
DELETE /ocs/v2.php/apps/files_sharing/api/v1/shares/{share_id}
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": {
"share_id": "<share_id>"
},
"name": "nextcloud_delete_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Explicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt. | |
| share_id | Yes |