nextcloud / nextcloud/server

Bulk removal of shares in the sharing overview

Open
#59,293 2 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

[!TIP]

Help move this idea forward
  • Use the 👍 reaction to show support for this feature.
  • Avoid commenting unless you have relevant information to add; unnecessary comments create noise for subscribers.
  • Subscribe to receive notifications about status changes and new comments.

Is your feature request related to a problem? Please describe.

Managing a large number of shares in Nextcloud is very tedious.
When shares accumulate over time — especially link shares without
expiration dates — there is no way to remove multiple shares at once.
I'm always frustrated when I have to open each file individually,
navigate to the sharing panel, and remove every single share one by one.

Describe the solution you'd like

In the sharing overview (Files → Shared with others / Link shares),
users should be able to:

  • Select multiple shares via checkboxes
  • Remove all selected shares at once via a bulk action (e.g.
    "Remove selected shares")

This would be consistent with how bulk actions already work for
files in the Files app (delete, move, etc.).

Describe alternatives you've considered

  • Removing shares one by one (current only option — not viable
    at scale)
  • Using occ CLI commands on the server (admin-only, not
    available to regular users)
  • Direct database access (not acceptable for end users and
    carries risk)

None of these are a reasonable solution for regular users who
simply want to clean up their shares.

Additional context

This was first requested in #15142 (April 2019) and assigned to
the Nextcloud 28 milestone, but the bulk removal of shares from
the sharing overview UI has not been implemented as of
Nextcloud Hub 25 Autumn (32.0.6).

A proper bulk action in the UI would significantly improve
usability for users with many shares and would bring Nextcloud
in line with comparable file sharing platforms.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Files sharing overview at Files → Shared with others / Link shares, and compare its controls with the existing bulk actions in the Files app. Trace how individual shares are removed and determine the UI and server paths needed for selecting multiple shares. Done means selected shares can be removed together and the existing sharing views remain functional.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
backend, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.