How to Delete a Non-Empty Folder from the Command Line on Raspberry Pi

To delete a folder that contains files, simply run this command (changing the path and folder name, of course):

sudo rm -rf /path/directory

Note: these commands work on every Linux distribution.

Enjoy!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top