Can't remove tags from files

I'm unable to remove tags that do not have colours from my files in Finder. I am able to remove the coloured tags.

Restarting Finder enables me to remove a tag once but not after that, I have to restart Finder again.

Posted on Apr 13, 2017 7:45 AM

Reply
5 replies

Apr 13, 2017 10:10 AM in response to tmazzzz

Is Finder crashing or you just can't do anything else with it?


Might be a corrupt .plist.


Do a backup, preferably 2 backups on 2 separate drives.


Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J. When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Select Library. Then go to Preferences/com.apple.finder.plist. Move the .plist to your desktop.


Re-launch Finder by restarting the computer and test. If it works okay, delete the plist from the desktop.


If the same, return the .plist to where you got it from, overwriting the newer one.


Thanks to leonie for some information contained in this.

Apr 15, 2017 12:32 PM in response to tmazzzz

Select a one, or multiple of the files/folder that you believe have these transparent tags assigned to them. Right-click on one of these items, and click the Tags… menu item. All unique tag names will appear as follows:

User uploaded file

Place your cursor behind the last tag that is shown, and press the backspace key to remove them. Finish with a return, and all of these transparent tags are now gone from the selected filesystem objects.

May 5, 2017 11:13 AM in response to tmazzzz

Launchpad : Other : Script Editor


Copy/paste the following into Script Editor, click the hammer icon, and then run it. A prompt will appear for the tagged file whose tags you want to remove. The tag(s) are removed, and Finder will show the file again sans tags.


-- remove_tags.applescript

--

-- Removes all tags associated with the File selected in Finder.

-- VikingOSX, 2017-05-05, Apple Support Communities


property aloc : (path to desktop as text) as alias

property msg : "Enter the file whose tag you wish to remove."



set tagfile to POSIX path of (choose filewith promptmsgdefault locationaloc ¬

without multiple selections allowed, invisibles and showing package contents) as text


do shell script "xattr -d com.apple.metadata:_kMDItemUserTags " & tagfile

do shell script "xattr -d com.apple.FinderInfo " & tagfile

tell application "Finder" to revealitem (tagfile as POSIX file)

return

If you are satisfied that the script does what you need, you can then save it initially as a text format applescript (e.g. tag_remove.applescript), and then with option+File menu : Save As... — you can save it in a script or application format (e.g. scpt, scptd, .app) for subsequent usage.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't remove tags from files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.