how to delete a direvctory mac commands code example Example: delete directory mac terminal rm -r dirname