Remove share

Remove a share, so a public link or access stops working.

DELETE https://cotlet.dev/api/v1/nextcloud/shares/{share_id}

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.

Request

cURL
curl -X DELETE https://cotlet.dev/api/v1/nextcloud/shares/share_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("nextcloud", "remove_share", {"share_id":"share_8c41d2"})
Node.js
const result = await cotlet.call('nextcloud', 'remove_share', {"share_id":"share_8c41d2"});
CLI
cotlet call nextcloud remove_share --data '{"share_id":"share_8c41d2"}'

Example response

JSON

{
  "share_id": "412",
  "status": "removed"
}

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.