emove dir code example Example 1: bash remove directory rm -rf directory-name Example 2: linux remove folder and all his content rm -rf /path/to/directory/*