Zen Cart Logo
Forums / General Questions / How to delete uploaded files from old orders?

How to delete uploaded files from old orders?

Locked

Views: 685

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
6 Oct 2009, 4:57 PM
#1
benwilliamson avatar

benwilliamson

New Zenner

Join Date:
Oct 2007
Posts:
21
Plugin Contributions:
0

How to delete uploaded files from old orders?

Hi, we have file upload attributes on our products that allow our customers to upload a file when adding their products to their cart. This is all working fine but after a few years, the /images/uploads/ folder is looking pretty full up.

Does anyone have a script that will delete any of these images that are no longer needed (ie, not attached to an order, and not it someone's 'saved cart')?