Remove share
Remove a share, so a public link or access stops working.
MCP tool nextcloud_write → remove_share
write Confirm
Removes one share. A public link stops working at once, and a user or group loses the access this share gave. A person with another share on the same item keeps that access. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| share_id string required | string | Share ID from list_shares. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "nextcloud_write",
"arguments": {
"operation": "remove_share",
"arguments": {
"share_id": "share_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"share_id": "412",
"status": "removed"
},
"isError": false
}