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
| Name | Type | Description |
|---|---|---|
| share_id string required | string | Share ID from list_shares. |
Request
curl -X DELETE https://cotlet.dev/api/v1/nextcloud/shares/share_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("nextcloud", "remove_share", {"share_id":"share_8c41d2"}) const result = await cotlet.call('nextcloud', 'remove_share', {"share_id":"share_8c41d2"}); cotlet call nextcloud remove_share --data '{"share_id":"share_8c41d2"}' Example response
{
"share_id": "412",
"status": "removed"
}