Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    254
    Plugin Contributions
    0

    Default Mass delete certain images?

    Basically I got an email from my hosting company stating that even though they allow unlimited disk space, you're not allowed to have over 50,000 files. Which is a pretty low number.

    I currently have 51,000 images in my images directory and I was wondering if there is a shortcut way to delete some of them, instead of manually deleting thousands.

    Basically I have around 2 product images for each product.

    XXXXX_pid.jpg and XXXXX_pidt.jpg


    (XXXXX refers to various numbers and letters and XXXX_pidt.jpg is a thumbnail)

    I was wondering if there would be some kind of command/program that could find all of the XXXX_pidt.jpg's and delete them for me?

    Or am I SOL?

  2. #2
    Join Date
    Oct 2008
    Posts
    254
    Plugin Contributions
    0

    Default Re: Mass delete certain images?

    I was thinking some kind of command to delete all "_pidt.jpg" if possible?

  3. #3
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Mass delete certain images?

    Quote Originally Posted by Kenichi View Post
    I was thinking some kind of command to delete all "_pidt.jpg" if possible?
    How about:

    rm *_pidt.jpg

    set your default to your images directory and run that and they'll be gone before you can blink.

    You might want to backup your images first. Try:

    tar -cvzf images.tar.gz *

    inside your images dir.

    Above only works if you have good hosting with shell access.

  4. #4
    Join Date
    Oct 2008
    Posts
    254
    Plugin Contributions
    0

    Default Re: Mass delete certain images?

    Thanks, good to know for future reference.

    I'll do the image backups, but then I'm going to just delete my images folder and upload my product images that I've mass grabbed
    (http://www.zen-cart.com/forum/showpo...18&postcount=9) since I have a lot of junk images of products I don't sell in there.

    Hopefully I wont need any images in the directory besides the products xD.

 

 

Similar Threads

  1. Disable "DELETE" - Make certain admin users not able to delete orders
    By vetpro in forum Managing Customers and Orders
    Replies: 0
    Last Post: 12 Nov 2011, 02:01 PM
  2. mass delete manfacturers with no products
    By kburner in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Dec 2010, 09:21 PM
  3. Mass Product Delete?
    By philip937 in forum General Questions
    Replies: 1
    Last Post: 2 Nov 2010, 12:46 PM
  4. Mass delete selected meta tag in database
    By beep in forum General Questions
    Replies: 3
    Last Post: 11 Aug 2010, 02:16 PM
  5. Mass Product Delete
    By spbennett in forum General Questions
    Replies: 9
    Last Post: 10 Aug 2007, 06:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg