Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Clean up orphaned attachments


#1

Hi there,

today I noticed that attachments to test runs are stored on upload, even before saving the comment. This leads to a situation where orphaned attachments can exist on the file system and in the database, in the case where the user uploads a file, but doesn’t save their comment. This situation is clearly not ideal, as these attachments consume disk space while not being used anywhere.
Is there a script or some admin action to find and delete these orphans? If not, consider this a humble feature request.

Regards,
Ralf


#2

I asked the same thing about 3 years ago and I am going to assume the answer is not any different:

This is with the former owners - maybe with the new owners there might be a change. Or - the reference is such it can’t really be determined by the db alone.