zoneminder icon indicating copy to clipboard operation
zoneminder copied to clipboard

After deleting Options > Storage > storage ID 1, the disk space is still in uses

Open olignyf opened this issue 1 year ago • 3 comments

Describe Your Environment

  • Version of ZoneMinder: v1.36.33
  • Debian 12

Describe the bug

  • Events in/ var/cache/zoneminder/events takes about 800GB.
  • No easy way to remove or reduce it.

To Reproduce

  • Click Options > Storage
  • Check the checkbox of the only storage item
  • Click "Delete"
  • No space is freed on the system

Expected behavior Delete storage should delete the storage on the filesystem

olignyf avatar Feb 04 '24 19:02 olignyf

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

welcome[bot] avatar Feb 04 '24 19:02 welcome[bot]

olignyf, that's an expected behavior, what the "options -> storage" does is present Zoneminder with the files storage location (configure it for ZM usage), so when you delete the storage what you're actually doing is telling Zoneminder to stop using it, not to empty it... if you want to release disk what you need to do is delete events stored there... there are several options: use a filter (that's what's normally used to maintain disk space); OS commands to delete files, the UI (slowest way but allows you to control what you want to keep)

ovargasp avatar Feb 16 '24 13:02 ovargasp

Surely a better UX would be beneficial :

  • Optional checkbox offered to delete the files as well for people like me who want to purge the disk as well.
  • Better wording to indicate that it doesn't "Delete" but "Clear" storage configuration or something appropriate.

olignyf avatar May 10 '24 02:05 olignyf