delete files

Post tips/tricks or get help with configuring RetroPie
Post Reply
User avatar
Robots86
Posts: 268
Joined: Thu May 05, 2016 1:18 am
Location: Birmingham, UK
Has thanked: 39 times
Been thanked: 28 times

delete files

Post by Robots86 » Sat Jun 25, 2016 1:10 pm

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

SP33
Posts: 25
Joined: Tue May 17, 2016 5:41 pm
Has thanked: 3 times
Been thanked: 24 times

Re: delete files

Post by SP33 » Sat Jun 25, 2016 9:31 pm

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

User avatar
Robots86
Posts: 268
Joined: Thu May 05, 2016 1:18 am
Location: Birmingham, UK
Has thanked: 39 times
Been thanked: 28 times

Re: delete files

Post by Robots86 » Sun Jun 26, 2016 3:49 am

Thanks sp33 :mrgreen:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest