Find the directory modified/created before 4 days

Hi,

I have an application which creates some directories while running. I want to delete these directories which are 4 days older.

i tried

find . type d -mtime +1 -print

And it is working fine..

but

find . type d -mtime +4 -print

is not giving any results which are 4 days old..

can anyone suggest a solution?

find . -type d -mtime +4 -exec rm -rf {} \;

For more infos : Unix find command helper

Ensure that you have directories you have created/modified 4 days before.

Put an ls of it and verify, also show here.

Masanamuthu command suggestion is very very dangerous.
Consider the timestamp on say /var .

ls -lad /var

I tried evrything possible by find... but still no success. These folders are created by an application(Espresso) each time it runs on various instances. In other directories of the same system it is ofcourse finding the directories which are 4 days old. but here its not.

find . -type d -atime  +1 -ctime  +1 -mtime  +1 -print

The above find prints all the directories which are 1 day old. But when i try to find directories which are 4 days old with the following..

find . -type d -atime  +4 -ctime  +4 -mtime  +4 -print

it is not listing anything bcoz of some unknown reason... (yes there are many folders which are 4 days old.. i checked it with 'ls -l'. its a huge list hence not posting here) It would be a great help if some one can help me to find another solution.. any help other than find would be appreciated...

What Operating System and version?
Are you user "root"?
Do the following command find any directories:

find . -type d -mtime +4 -print
find . -type d -follow -mtime +4 -print 

Hi methyl.. Thanks for ur reply.. but both ur commands are not working.. but in other directories its working.. but only in this directory for some unknown reason its not showing any results even though there many directories which match the search criteria...

yes im root..

following is the linux version..

Linux version 2.4.9-e.57smp (gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-129.7.2))

do u have any other solution than find?