bash delete < directory code example Example 1: bash remove directory rm -rf directory-name Example 2: remove directory and contents rm -R directory