Delete all files in folder?


#1

Hello is there a way i can delete all files in a directory?
thanks


#2

Hey @SpeedyCraftah, for this you’d need to use the console. If you had a folder called trash then rm -rf trash would remove everything in that directory.

This is a powerful command, and there’s no undo aside from Glitch’s Rewind, so if you use it to inadvertently delete files that aren’t being tracked in your project’s git repo they’re gone forever - no Recycle Bin or the like. Be extra-sure that you really want to delete all of those files.