::Gomez:: Posted January 12, 2008 Share Posted January 12, 2008 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 More sharing options...
npe Posted January 12, 2008 Share Posted January 12, 2008 (edited) I thought in this case it also gives you the option "yes to all". edit: nmv...just noticed it's in *nix section. Edited January 12, 2008 by npe Link to comment Share on other sites More sharing options...
::Gomez:: Posted January 12, 2008 Author Share Posted January 12, 2008 i am using winSCP 4 and it just tells yes or no. Link to comment Share on other sites More sharing options...
night_stalker_z Posted January 12, 2008 Share Posted January 12, 2008 rm * http://www.computerhope.com/unix/urm.htm Link to comment Share on other sites More sharing options...
::Gomez:: Posted January 12, 2008 Author Share Posted January 12, 2008 Thank you so much :) Link to comment Share on other sites More sharing options...
Borbus Posted February 6, 2008 Share Posted February 6, 2008 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 More sharing options...
Recommended Posts