Remove non-used images

By Damon - February 3, 2016

Hi Tim,

Uploaded images should be deleted when the record they are attached to is deleted. There should be no orphan uploaded files.

I tested with a local installation that if a record with uploaded files (either through upload field or WYSIWYG editor) is deleted, the uploaded files are deleted too.

Can you confirm that deleting a record doesn't delete the attached uploads? And is this something that happens consistently?

First step is to make sure the images are deleting when the record is deleted. Then after that is resolved, we can look at the issue of orphaned uploads.

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Toledoh - February 3, 2016

Hey Damon - I didn't realise that!

I just checked and the reason the images are not being deleted is that they are actually separate records from a related table.  I've just advised the client that if they delete those records, the images will be removed.  Thanks!

Cheers,

Tim (toledoh.com.au)