Deleting files without folders.

How can I delete all the files in subfolders without folders (preserving directory scructure).

P.S. I have a huge variety of computer books organized in subfolders (admin web hardw programming_langs) .. but I don't need them - the only way to know something now is GOOGLE (I've realized now)... non of those books have been read, completely, that's why i'ts DEAD knowledge. 60 TB (~10 gb on *nix matter).

Hi Xcilav,

An option you could try, locating within the desired main folder:

find . -type f -exec /bin/rm -f '{}' +

If permission error appears use:

sudo find . -type f -exec /bin/rm -f '{}' +

Try it with test folders with subfolders first

Hope it helps

Regards