delete files without conformation


Recommended Posts

Hello guys, hope everything is fine..

i need to delete all the files inside a folder... but if i use del /foldername.. its asks me for everyfile if i want to delete it..

is it there any command to delete all the files inside a folder without confirmation?

Thanks

Link to comment
Share on other sites

  • 4 weeks later...

Actually what you were looking for is rm -rf directoryname

Be very careful using wildcards with rm. And don't ever use a wildcard with recursive (-r).

edit: note that that will actually unlink the directory itself too, which you didn't actually specify, but I assume is what you wanted anyway, and even if it wasn't you didn't lose anything you can just make it again.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.