how to remove a folder in terminal code example Example: delete directory terminal rm -r directory-name