Delete Old Images

  • Product Code:  37677
$20.00

Quickly and easily find and delete old, unused images and recover some server disk space!

New for v1.3: Now you can MOVE the images to a backup folder instead of deleting them. Once sure, you can then clear the backup files with the click of a button! Images are moved to ../images/backup/ folder and retain the folder structure.

NOTE: This will only work with folders and image names that have ASCII characters (a-z, A-Z, 0-9, -, _, space etc....). The extension will detect folders and files that do not conform to standard naming practice and display a warning. These folders and files will not be shown - you will need to correct the bad names via FTP.

I wrote this extension for myself as I had about 5000 orphaned images that I needed to delete, not a task I could do without this extension.

This extension compares the file names on the server with the file names in the database and displays any files that do not have an entry in the database. You can then choose to delete some or all of the files in a single click.

Also included is a 'Clear Cache' function that clears the data and images caches.

To use, simply select which folders/directories that you want to check, set it so seach for sub-folders or not and click on the check button.

Folder selections can be saved for future use.

Checks for images in the database Image fields and Description fields. Default is to check and delete images in the ../images/catalog/ folder as that is the default location, but if you have an ../images/catalog/ directory (probably due to a legacy extension) then you will have the option to check those folders also.

Currently only available for Opencart 3 and 2.3.x, but if anyone would like an earlier version then let me know and I will make one available.

Instructions are available here Delete Old Images.

Demo available here: Delete Old Images Demo
U: demo
P: demo
Go to Extension > Modules - > Old Images
For the demo, the images don't actually get deleted.

About

This extension allows you to quickly and easily find and delete old, unused images.  also includes a cache clearing (data and image caches) function.

REMEMBER TO BACKUP YOUR FILES BEFORE MAKING ANY CHANGES

~~~~~ * ~~~~~
This extention is only available for Opencart 3.x

~~~~~ * ~~~~~

Download

You can purchase and download this extension at the Opencart Extension Store

A full list of my extensions is availble here: Opencart Market Place

If you find you need to edit any files then I recommend the free Notepad++


New Installation - Opencart 3.x

  1. Go to Extensions -> Installer
  2. Upload the old_images_v1.3_oc3.x.ocmod file and wait for it to finish.
  3. Go to Admin -> Extensions -> Extensions, select Modules and install the Old Images Module.
  4. Go to Admin -> System -> Users -> User Groups and edit your Admin group. Set access and modify permissions for:
    extension/module/oldimage


Using the Extension

Go to Extensions -> Modules -> Oldimage to open the extention.

  1. Click the Add Directory button.
  2. Select a directory that you want check.
  3. Select if you want to check in sub-directories
  4. Click on the Check button and wait for the results. 
  5. Select files using the Checkboxes or use the Select All button.
  6. Click on the Delete button to delete the selected files.
  7. Click on the Move Images button to move the files to the ../backup folder.
  8. You can save the directory settings for later use by clicking on the Save Module button.
  9. Click on the Clear Cache button (top right of page) to clear the data and image caches.
  10. Click on the Delete Image Backup button (top right of page) to delete the image file backup.


Notes

  1. If you have a lot of images it may be necessary to check more directories instead of just checking top level and sub-directories. 
  2. There is NO undo.  Once deleted they are gone so make sure you have a site backup before deleting your images.


Upgrade

Follow the uninstall instructions and then install the latest version.


Uninstall

  1. Go to Extensions -> Modules and uninstall Oldimage
    - This removes the oldimage table from the database.
  2. Go to Extensions -> Installer
  3. Delete the old_images_v1.x_oc3.x.ocmod entry.
    - This removes the files from your server.


For help and support please use the email form Email Support Form

If something has gone wrong or you need support then please include as much information as possible and a full description of the problem.  If you send me an email that just says 'it's not working', support is going to take a lot longer as I'm going to have to start asking lots of questions.... the more information I have the quicker I can solve any problems.

Compatibility
OC Version 2.3.0.0, 2.3.0.1, 2.3.0.2, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.1.0.0_b, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6

Write a review


Note: HTML is not translated!
    Bad           Good
Captcha