how to remove a directory even if it has filesin terminal mac code example Example: delete directory mac terminal rm -r dirname