Page 1 of 1

delete files

Posted: Sat Jun 25, 2016 1:10 pm
by Robots86
Ive got a load of files in my nes rom folder that didn't copy over properly. Every time i try and delete them through samba share it freezes. Can someone tell me how to delete all the files in the folder?
I want to do it with rm but not sure how to delete all.

Thanks

Re: delete files

Posted: Sat Jun 25, 2016 9:31 pm
by SP33

Code: Select all

rm -rf foldername
will delete a folder and all its subfolders without asking for further permission

Code: Select all

rm -r foldername/*
should delete all the files in a folder

Re: delete files

Posted: Sun Jun 26, 2016 3:49 am
by Robots86
Thanks sp33 :mrgreen: