How to remove 15days back old files

Hi Experts,

I want to delete the log files which is created 15 days back.
1st I want to view the files and later I want to delete viewed files
I have tried with following command but its not working.

find . -name '*.log' -mtime +15 -exec ls -ltr {} \;

This is showing the list which shows not only 15 days back files , its showing
other than that also. What mistake I have done.
Can anybody help me.

Thanks & Regards,
Vidya

The "-mtime +15" expresssion shows files modified 15 days ago OR MORE. Remove the sign from the number for exactly 15 days ago as in:

find . -name '*.log' -mtime 15 -exec ls -ltr {} \;

There might also be some confusion with the atime, mtime, and ctime if the above command doesn't filter out your unwanted files.

Best of luck.

I running out of space on my hard drive, I need to transfer the os to another HD or delete some files too try to free space. what commands can I use to do this and to delete some files.

Andrew