# -d / -depth = depth first traversal - avoids find removing the directory and then trying to recurse it, causing the following error:
# find: ./somedir: No such file or directory
# -delete implies -depth but it's riskier because although more efficient avoiding forks for each empty dir, if the selector is wrong such as missing the - before -type you'll lose files / data
#find "$starting_directory" -type d -empty -delete
# Mac's rmdir command doesn't have a --verbose switch for feedback, so use GNU version instead