When I delete an attachment from a release (using the web interface), it doesn’t appear to be deleted from disk. I assumed this would be the intended behavior but I could be missing something of course.
I’ve tested this by uploading the same attachment several times and subsequently deleting it. I then compare the checksum of the attachments on disk to the known checksum of the file, which shows the same file saved several times even though it was deleted each time.
If this is a bug I’m happy to assist with troubleshooting the issue. If this is the intended behavior, i.e., attachments are not deleted from disk when deleted from a release, it would be useful to have a procedure to delete orphaned attachments as an alternative; perhaps in the Operations box in the Admin Panel?
Thanks in advance for your help on this!
- Gogs Version: 0.11.53.0603 (binary release)
- Database: sqlite3
- System: Ubuntu Server Linux 16.04.4 (Xenial) LTS