Some time I have uploaded some image files to my server to include them into my post or page, but I never use or forgot to include them and especially these image files are not deleted after your a post or page deleted.Actually,I can delete these unused image files via any FTP client software.But , I must check every image files to determine it is used or unused image files and it is waste of my time.So I’ve created my first WordPress Plugin called DUI(Delete Unused Image).It may not the best plugin but it works on my website.This wordpress plugin may take long time when it searching unused image files especially if you have a large database.I think this plugin should be compatible with all versions of PHP 4 and 5 and wordpress 2.3.x (I’ve tested on wordpress 2.3.2, PHP 5.0.4 it works fine)


Note :
1.Please back-up your image files before use this plugin.
2.This plugin deletes image files only not delete any information in wordpress database that relate to image files deleted.
Download
Download
Current Version : 1.0



Usage :
1. Download plugin and unzip.
2. Upload the plugin file to your WordPress plugins directory inside of wp-content.(i.e. www.YourDomain.com/blog/wp-content/plugins/dui/duixx.php)
3. Activate it from the plugins menu inside of WordPress.
4. Change Permissions monthly archives directory by Chmod to 777 with your favorite FTP Client Software(i.e. cuteFTP).Some server may not require chmod to 777.
5. Go to Admin Control panal -> Options -> DUI, select Unused images file that you want to delete then press delete button.
6. This is IMPORTANT step after delete unused images file you must Chmod monthly archives directory to previous value(most are 755).


I appreciate any comments & suggestions.