mac terminal delete directory not empty code example Example: terminal delete directory not empty rm -rf myDirectory