delete directory if exists not emptylinux code example Example: terminal delete directory not empty rm -rf myDirectory