Delete unused uploaded images

Posted about 2 months ago by Turquess

Post a topic
Not Taken
T
Turquess

Hi, many users upload images to designer but does not complete the order, so to folder fancy_products_uploads is added many GB of images every month and many of them is unusable, because design is not ordered.

It would be great to add a feature that deletes all images that are not in orders older than X days.

4 Votes


5 Comments

Sorted by
V

V.I. posted 15 days ago

@Rady Kal Do we understand that this is impossible to implement? Or do you not see it as useful? Why is this feature not implemented?

1 Votes

M

Mario posted 18 days ago

Can't implement an option to delete old images? Almost all image upload plugins have this option in the settings.

1 Votes

M

Markus Dangl posted about 1 month ago

I agree. With a cron job you can delete old files. But the cron job does not know which uploads are used for orders.

1 Votes

T

Turquess posted about 1 month ago

How I can do it? I don't found any feature in this plugin. On my server is takem around 49GB and 48GB of them is only one folder (wp-content/uploads/fancy_products_uploads) I delete manually old years and months due space almost every 2 months. But when some customer want print again olded order, I can't becasue this data is deleted. I need delete only unused uploaded files, which is not associated to any completed order and older for example than 30 days.

1 Votes

rady kal

rady kal posted about 1 month ago Admin

You can do that with Cron Jobs either on your server backend (ask your provider) or via WP plugin. https://blog.runcloud.io/external-cron-jobs-in-wordpress/

0 Votes

Login or Sign up to post a comment