antony Nextcloud icon

antony Nextcloud

Manage files, folders, shares, versions and search in Nextcloud

Share → Delete

AI-generated

Summary

Delete a Nextcloud share by its ID. Optionally, after deletion, remove the recipient’s parent target folder when the share is an internal user share with a nested target path; this cleanup requires the antonyapi plugin and admin rights.

Inputs

  • Share ID (required) — The ID of the share to delete.
  • Zielordner beim Empfänger Aufräumen — Defaults to false. When enabled, checks the share before deleting it and attempts to clean up the recipient’s parent target folder for an internal user share with a nested target path. Requires the antonyapi plugin and admin rights.

Output shape

A single item per input item, with a JSON object indicating success and the share ID.

When cleanup is enabled, the output also includes targetFolderCleanup with the removal result and project folder, or a reason when the share does not qualify. Cleanup failures can fail the operation after the share has already been deleted.

Links

Discussion