force remove directory mac terminal code example Example: delete directory mac terminal rm -r dirname