nextcloud / nextcloud/server

Exclude specific filenames and paths from the trash bin

Open
#58,109 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement
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.
I currently have a folder where a lock.json file is being created and deleted multiple times per day, resulting in (almost) the same file being saved into the trash bin. This makes the deleted files list really big, making it difficult to find the file you're actually searching for.
In my situation, 536 out of 775 deleted files in the last 30 days are the same "lock.json" file.

Describe the solution you'd like
I'd love to have an option (somewhere) where I can exclude certain files and folders from the trash bin. Excluding folders could be done via the details pane or through the context menu (this should probably do it recursively). Doing the same for files wouldn't work because these files might only exist for a few seconds. Another option would be to have this in the settings page.

Describe alternatives you've considered
Manually select each file every few weeks and delete them by hand.

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

No files, tests, or entry points are named, so start by locating the server-side trash-bin handling for deleted files and reviewing how settings or file actions are exposed. Done means users can exclude specified filenames and paths from the trash bin, with folder exclusions applying recursively if supported by the agreed design.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.