Menu

#4 "rm" can't delete read-only files

open
nobody
None
5
2004-08-19
2004-08-19
No

Trying to recursively delete files from a command-line
(Using WinXP SP2). Using the command:

rm -rf some_folder

This will only work if the files are writable, it will throw
permission denied errors if read-only. Since read-only in
windows doesn't mean that you can't write, only that
you shouldn't write, is there a way to override this so
that rm will delete read-only files?

If not, could you possibly include this as default
behavior or as a command-line option to rm?

Thanks

Discussion


Log in to post a comment.