Hello,
Does anybody know how I can bulk delete all images in my catalog? Both primary and additional images. See this thread: [url]http://forum.cs-cart.com/vbugs.php?do=view&vbug_id=1589[/url]
Thanks.
Per
http://AanDee.com
[quote name=‘AanDee’]Hello,
Does anybody know how I can bulk delete all images in my catalog? Both primary and additional images. See this thread: [url]http://forum.cs-cart.com/vbugs.php?do=view&vbug_id=1589[/url]
http://AanDee.com[/QUOTE]
Here’s a solution to this problem, provided by helpdesk:
Create a file in the var/database/backup directory. Name it whatever.sql and place this content in the file:
DELETE FROM cscart_images_links WHERE object_type
= ‘product’;
Run a ‘restore’ from the admin panel, under database. Chose the file you created.
This action will delete all images in the catalog, both primary and secondary ones.
Make sure you make a backup of your complete database before this action.
After this you can delete your images files in “images/detailed” and “images/product” directories in order to free up disk space.
/Per
http://AanDee.com