::Gomez::
Jan 12 2008, 00:50
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
I thought in this case it also gives you the option "yes to all".
edit: nmv...just noticed it's in *nix section.
::Gomez::
Jan 12 2008, 01:16
i am using winSCP 4 and it just tells yes or no.
night_stalker_z
Jan 12 2008, 01:32
::Gomez::
Jan 12 2008, 01:44
Thank you so much
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.