Skip to content

Instantly share code, notes, and snippets.

@lodestone
Last active December 14, 2016 02:09
Show Gist options
  • Save lodestone/dfeb43a2179d39e7bdd0 to your computer and use it in GitHub Desktop.
Save lodestone/dfeb43a2179d39e7bdd0 to your computer and use it in GitHub Desktop.
Deleting Mac OS X tags. All of them.

Deleting Mac OS X tags. All of them.

Working on a friend's machine and they had about 200+ tags that were generated by some script or program. They were meaningless and made the tag situation unusable. The following worked to remove most of the tags. It errored out once and when I checked the tags in Finder, they were just the basic ones like Red, Orange, etc.

EDIT: tags doesn't seem to be in brew anymore as of 2016-07-08. Grab it here.

  1. brew install tags
  2. find . | xargs tag -d -N -g -set ''
  3. Let it run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment