#6011 - Deleting a gallery does not delete the uploads/galleries files
| Identifier | #6011 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Deleting a gallery does not delete the uploads/galleries files |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Version | 11 beta4 |
| Addon | galleries |
| Description | When deleting a gallery, the files still exist on-disk despite being removed from the database.
These should be removed because it creates conflicts if a gallery by the same name is later created. |
| Steps to reproduce | |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
This hotfix will ensure media within a deleted gallery also gets deleted as it should (according to our code comments).
Additionally, this hotfix defers deleting images and videos to the task queue (when available, and if we have 100 or more items to delete), or to a shutdown function otherwise.