How to delete all files from a folder at once?
-
- Posts: 8
- Joined: 2017/05/24 09:38:28
How to delete all files from a folder at once?
Hello i want to delete my minecraft world folder all at once without have to do it one file one at a time or using filezila. is there a way to delete the folder and all the files in it at once?
Re: How to delete all files from a folder at once?
Note that these two are different tasks:
rm -r foldernameto delete all files from a folder?
to delete the folder and all the files in it?
-
- Posts: 140
- Joined: 2015/06/02 13:04:03
Re: How to delete all files from a folder at once?
If you are brave enough
Code: Select all
rm -rf /folder/name/*
Re: How to delete all files from a folder at once?
I'd suggest you delete the directory directly without caring for the files
rm -rf /the/directory/
without * as I've seen funny things happening with wildcards and symlinks
rm -rf /the/directory/
without * as I've seen funny things happening with wildcards and symlinks
Re: How to delete all files from a folder at once?
As others have said you can do it from the command line -- I have, but as a last resort. My preferred method is simply to delete it using mc (Midnight Commander). Select the file, folder, etc., and hit F8, it will ask you if you want to delete file, folder, etc. just say yes. As someone pointed out deleting stuff from the command line can be dangerous. If you choose to delete from the CLI just be VERY CAREFUL.Psychotic_OZ wrote:Hello i want to delete my minecraft world folder all at once without have to do it one file one at a time or using filezila. is there a way to delete the folder and all the files in it at once?