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