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.
@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?
Can't implement an option to delete old images? Almost all image upload plugins have this option in the settings.
I agree. With a cron job you can delete old files. But the cron job does not know which uploads are used for orders.
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.
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/