variant del /s /x /e

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
I regularly use an alias to del /s /x /e to remove files in a directory tree.
The /e option is there because I don't care about all the "file not found" and "directory not empty" messages.
On the other hand, I do care about an "access denied" message (read-only file that cannot be deleted, unless I add /z).
/e suppresses all non-fatal messages.
Suggestion: a variant such as /e1, that would suppress warnings ("file not found", "directory not empty") but keep errors ("access denied") — if such a distinction between errors and warning can be devised.