delete a folder using terminal directory not empty code example Example: terminal delete directory not empty rm -rf myDirectory