I have a directory which includes some files and some folders containing other files. I'm trying to remove these files in the main directory without touching the folders or their contents.
I'm using this
it it working fine and only delete the files, but I wonder why the terminal displays this message:
rm: cannot remove /media/d/data/dd1: Is a directory
and same message appears for all the folders found under the main folder. Can anyone explain? and is there is a way not to display this message on terminal?