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

Parameters: remove_share
NameTypeDescription
share_id string required string Share ID from list_shares.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "nextcloud_write",
    "arguments": {
      "operation": "remove_share",
      "arguments": {
        "share_id": "share_8c41d2"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "share_id": "412",
    "status": "removed"
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.