Deleting 70GB of woocommerce images
-
Hi there, please can you give me some guidance on an issue with my client’s website.
He has a wedding photography website, https://simplyphotographic.co.uk, and is using Woocommerce plugins as well as the Woocommerce Photography plugin.
There is a page which is a Client Area, where wedding couples can log in and purchase images from their wedding. Problem is, I need to delete at least 70GB of images from this area, as the site is falling over.
Deleting an image from the Client Area doesn’t, of course, delete it from the site or the WP Media Library, so it’s still taking up space on the server which we don’t have.
Someone posted a code snippet ‘Delete Woocommerce product images after product deletion’ to put in the functions.php file or use the Code Snippets plugin. But I don’t want to delete all the images in the Client Area – just 70GB of the ones we don’t want, but keep around 1GB we do want.
What is the best/correct way to go about this, please? Could I do it via the database/sql? There’s nothing I can use by way of a plugin, even something like the spreadheet ones, as the site is almost at a standstill and timing out constantly. And of course, deleting thousands of images manually will take me the rest of this year at least! Cheers, James.
The page I need help with: [log in to see the link]
- The topic ‘Deleting 70GB of woocommerce images’ is closed to new replies.