terminal how to delete whole folder code example Example: delete directory terminal rm -r directory-name