i search alot on google i found some response but didn't find what i want. what i want issuppose i have 5 files in a folder for the same date same date:1st file-1mb2nd file=2mb3rd file-3mb4th file-4mb5th file-5mbnow when i click on my button it will delete all file except 5mb because of its size.first i want to search files according to date in a folder and next delete all file for that particular date except the file which have the largest size.i dont want code i want the functinality which can be used in this project.thanks in advance