how to remove inner files without removing child folders

Hi,

I want to write a command to remove all the files from a folder and inner child folder without removing the child folders of parent folder.

like I have folder like this...

folder a/b/c
file a/test.sql 
file a/b/test2.txt
file a/b/c/temp.jpeg

now I want to remove all the files from folder a (test.sql, test2.txt and temp.jpeg) without removing folders b and c.

Thanks in advance.

Kashif.

use the find command and check to make sure it is a normal file, then exec rm {}

Advanced techniques for using the UNIX find command

Just to provide you command:

find /<your>/<directory> -type f -exec rm -f {} \;

Enjoy!

Regards,
-Artur.