how to remove a folder using terminal + mac code example Example: delete directory mac terminal rm -r dirname