ubuntu remove full directory code example Example 1: bash remove directory rm -rf directory-name Example 2: how to delete a folder in ubuntu using terminal rm -R folder-name