How to remove stored file entries, but keep files themselves

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.6
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12
  • Web server and version (e.g, Apache 2.4.25):
    • NGINX 1.27.4
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • NGINX 1.27.4
  • PHP version (e.g, 8.3):
    • 8.3.16
  • Is this the first time you’ve seen this error? (Yes / No):
    • no error, just a question
  • When did this problem seem to first start?
    • no error, just a question
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • VM
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • n/a

Summary of the issue you are facing:

I don’t have an issue, just a question: For the last couple of years, NC has been running stable - but I want to take a different approach for organizing/storing my photos.

As of now, all photos (several 10k’s) are stored in Nextcloud (on an external storage), but as the auto-upload (on Android) isn’t reliable anymore (at least for me), I’m looking for a different approach.

To my question: how can I delete the corresponding file-entries in Nextcloud, but keep the files? So in other words: is there any suggestion on how to remove the database-entries?

Thank you very much!

The Photos app should support a .noimage file to exclude a directory from being scanned. For further details search the forum for it.

Hi there,

just wanted to thank you for taking the time to reply.

I’ve tested .noimage / .nomedia on a particular subset, can confirm it works.

Will mark your answer as solution after sending.

Have a nice day!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.