Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / how to delete the images not in use ?

how to delete the images not in use ?

Locked

Started by sospcshop on 25 Mar 2007, 12:21 PM · Views: 1,182

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Mar 2007, 12:21 PM
#1
sospcshop avatar

sospcshop

New Zenner

Join Date:
Mar 2005
Posts:
30
Plugin Contributions:
0

Post #1 by sospcshop

hi,
I have 100s of images that are not displayed in the store becouse are images of products that are obsolete.

how can I delete all those images ?

thanks.

25 Mar 2007, 3:49 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,761
Plugin Contributions:
0

Post #2 by Kim

Use your FTP program to delete them from the server.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

30 Mar 2007, 8:33 PM
#3
sospcshop avatar

sospcshop

New Zenner

Join Date:
Mar 2005
Posts:
30
Plugin Contributions:
0

Post #3 by sospcshop

the problem is that i do not know the images that are in use or not !

the process should be :

I read an image from site (/images) and if it is not in the db it must be deleted else go to the next image..!

is a code similar ?

thanks !

30 Mar 2007, 11:13 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #4 by ajeh

There isn't anything built in to check image names but it could be written ...

The safest method being to test image names against products, categories and manufactuers and then check the medium, large, additional and additional large ...

Move to another directory before deleting ...

While this code does not exist at this time, yes it could be customized to analys all of those image filenames for you and figure out what you can get rid of and do it automatically or move to a separate directory for review etc.

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!