Is there a way to prevent unwanted deletion of many files?

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 34.0.5, Hetzner shared storage (no log access)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Windows 11
  • Windows desktop client_:
    • 35.0.3

Summary of the issue you are facing:

Recently from a desktop a large number of files and folders had been deleted unintentionally. Some of the files are accessed only in long periods. So we were lucky that I noticed it the same day, so they could be restored from the server trash.
Of course, a first step is to restrict permission to delete certain files and folders. But that only makes sense for some data.
Is there an app or strategy to get notified if a certain number of files have been deleted in a short time? Or a way to warn a user if the client tries to sync many changes?
We don’t have access to the server logs. So reading those by a script as discussed in another topic is not possible.
With respect to the client log files, there is being created a new file every few minutes. So I don’t know how one could monitor those for e.g. “Deleting file” and give a notification if a certain number of log entries in a short time have been exceeded.

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

  - activity: 7.0.0
  - appstore: 1.0.0
  - bookmarks: 16.2.7
  - bruteforcesettings: 7.0.0
  - calendar: 6.7.0
  - cloud_federation_api: 1.18.0
  - comments: 1.24.0
  - contacts: 8.10.0
  - dashboard: 7.14.0
  - dav: 1.40.0
  - federatedfilesharing: 1.24.0
  - files: 2.6.0
  - files_accesscontrol: 5.0.1
  - files_activitymonitor: 1.1.1
  - files_archive: 1.3.2
  - files_automatedtagging: 5.0.1
  - files_downloadactivity: 1.18.1
  - files_downloadlimit: 5.2.0
  - files_linkeditor: 1.1.27
  - files_lock: 34.0.1
  - files_pdfviewer: 7.0.0
  - files_reminders: 1.7.0
  - files_sharing: 1.26.0
  - files_trashbin: 1.24.0
  - files_versions: 1.27.0
  - firstrunwizard: 7.0.0-dev.0
  - groupfolders: 22.0.6
  - lookup_server_connector: 1.22.0
  - nextcloud_announcements: 6.0.0
  - notes: 6.1.1
  - notifications: 7.0.0-dev.1
  - notify_push: 1.4.1
  - oauth2: 1.22.0
  - office: 1.0.0
  - password_policy: 6.0.0-dev.0
  - photos: 7.0.0
  - privacy: 6.0.0-dev.1
  - profile: 1.3.0
  - provisioning_api: 1.24.0
  - recommendations: 7.0.0
  - related_resources: 5.0.0-dev.0
  - serverinfo: 6.0.0
  - settings: 1.17.0
  - sharebymail: 1.24.0
  - sharereview: 2.3.0
  - support: 6.0.0
  - suspicious_login: 12.0.0-dev.0
  - systemtags: 1.24.0
  - tasks: 0.18.1
  - text: 8.0.0
  - theming: 2.9.0
  - twofactor_backupcodes: 1.23.0
  - updatenotification: 1.24.0
  - viewer: 7.0.0-dev.0
  - workflowengine: 2.16.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.