I am trying to delete a directory on OS X. I do rm -r /path/dir
but I keep getting many, many messages like this:
override rw-r--r-- root/wheel for cron/migrate.php?
I type y for one message, but then another one pops up. I would like to override the message for the whole directory in one command. How do I do that?
Best Answer
First approach is, using
-f
option forrm
command:rm -rf /your/path
Second approach is,
yes | rm -r /your/path
First approach used more for your purpose and second approach used more for copy or moving files.