November 21 2007 • 12:14 AM

Color Swatches That Won’t Delete

Delia wrote:

I recently worked on an internal design for a book, using black plus a spot (PMS) colour, but in the end I couldn’t delete the unused PMS colours from the Swatch palette. I would choose ’select all unused’ in the swatch palette and the colour would be highlighted, but when I tried to delete it by dragging to the trash, the trash icon would be ghosted.

You are not alone in this problem, Delia. This has plagued many InDesign usrs. Invincible color swatches (ones that cannot be deleted) usually occur when the spot colour has been used in a graphic (usually EPS, PDF, or PSD). Sometimes you don’t even realize the color is in the graphic, and there, and it’s not easy to figure out (though here’s one method). Unless you change or delete that graphic, you won’t be able to remove the color swatch.

However, occassionally, the color is really stuck, usually due to some kind of minor document corruption. One of the best ways to get the document back on track is to use File > Export to create an InDesign Interchange (INX) file. Then re-open that file in InDesign and you should be able to remove the color from the Swatches panel. Make sure to proof the new file carefully against the old one, as things can sometimes change a little in the conversion.

Synchronize a Book

Here’s another option for a stuck color swatch, if you’re sure it’s not in an image. Honestly, I’ve never tried this method, but I have heard that some people are also able to delete their color swatches after a book synchronization:

  1. Create a new document that has a color swatch with exactly the same name as the one you’re trying to delete.
  2. Use File > New > Book to create a book panel, choose Book Page Numbering Options from the book panel’s flyout menu, and disable Automatic Pagination (called “Automatically Update Page & Section Numbers” in CS3). Then add the two documents (the old one and this new one).
  3. Make sure the new document is the “master” document (click in the left column in the book panel).
  4. Choose Synchronize Options from the book panel’s flyout menu and turn off everything except Swatches.
  5. Click Synchronize.

If all goes well, you should now be able to delete that swatch.

Deep INX Clean

If the INX roundtrip and the synchronize tricks don’t t work, here’s one last attempt. This is hard core, but it should work:

  1. Export the document as an INX file.
  2. Open the INX file in a text editor (such as TextWrangler on the Mac, or Notepad in Windows). Don’t use a word processor or anything that could add formatting to the text.
  3. Search for the name of the color you’re trying to remove. You should find it inside an XML tag named “colr”. Remove that whole element (see what’s selected in the image below).
colr1
colr1
  1. Now search for the name again. You should find it in a tag named “cink”. Remove that whole element.
colr2
colr2
  1. Use Save As to give the INX file a different name and then open that new INX file in InDesign. The color swatch should be gone.

Messing with INX files is always a little dicey, so make sure you’re working on duplicates and save your work before proceeding. A wrong tag in an INX file may crash InDesign upon import.

20 Responses discussing this post. Add yours below.

  1. Brian Cupp
    November 21st, 2007 • 1:43 amLink

    I can vouch for the “Synchronize a Book” option since I found this option and posted it to the Adobe User to User Forum.

  2. Eugene
    November 21st, 2007 • 3:45 amLink

    I recently posted something similar on the CreativeIreland.com forum about this. And the .inx method was the one I choose to get them to try. No word on if it worked yet.

    I was thinking about this and it’s a bit of a pain to have this happen. You could have 500 images in a document or across a book.

    I was thinking that the Links Panel could have some sort of icon, like it does for PSDs, that has layers inactive, to show if an image is using a spot colour. Or at least if you tried to delete the colour InDesign would prompt you to say File.eps is using this colour, do you want to edit the image instead?

    The other thing that someone asked me recently was “How can I tell how many images i have in my book, I have loads of documents”. Well I just said to package the book and open the links folder and count them. But the real option would be for the book panel to grow a new tab, where it would list all the images in the book and what page their on, and be able to show that little new icon to identify images with spot colours in them.

    Am I wishing too hard?

    David, great work again, I love the edit Inx file to rid the spot colour by literally tearing it out of the coded file. I wouldn’t dare do it myself. I could live with an annoying swatch and just map it away. But that is just me.

    What if it just told you what page the colour swatch was being used on, is that too much to ask for?

  3. November 21st, 2007 • 12:28 pmLink

    I guess there’s an open “b” or “strong” tag somewhere in the last two paragraphs of the post…
    :)

  4. November 21st, 2007 • 1:11 pmLink

    David, thanks for the INX edit info, good to know. But “colr” and “cink” — come on Adobe, whatever happened to the idea that XML tags should be easily human-readable?

  5. Eugene
    November 21st, 2007 • 2:14 pmLink

    I just thought the vowels weren’t working on the keyboard. As earlier in the post it’s usrs and then it’s colr, I wasn’t sure though, and I made a typo in my post, so I can’t complain. I like the bold though.

  6. November 21st, 2007 • 3:14 pmLink

    I fixed the rogue bold tag, sorry Eugene ;-)

  7. November 21st, 2007 • 4:07 pmLink

    I may well be in the minority here but as much as I’m into keeping files as “lean and mean” as possible, I just don’t see the point in possibly introducing other problems in a file to get rid of these unwanted swatches.

    INXing a file, as David notes, can cause some changes in the file and, IMO, should only be used with a file exhibiting symptoms of real corruption.

  8. Liam
    November 21st, 2007 • 11:20 pmLink

    Trouble is I feel like causing some real corruption when I can’t get the damn colour to delete!!!

    Unused colours in file is one of my all-time pet hates. So I get a wee bit irate if I can’t delete them. :P

  9. Eugene
    November 22nd, 2007 • 1:09 amLink

    I’ve never experienced the unable to delete colour from the swatches.

  10. November 22nd, 2007 • 5:18 pmLink

    Since we’re on an inky topic here, perhaps it’s not too OT of me to raise a few separation issues? I have the opportunity to create a file for a press run test (for a 24-page magazine which *has* to look the very best possible), where I intend to play around with separation parameters like the amount of GCR/UCR, Max Black, Total Ink Limit and Gain. On googling this, it seems that no one really knows too clearly what would be really optimal for sheet-fed press work (Euroscale) on really good, glossy paper — not even Dan Margulis. Do any of you fine folks here have any good tips about making such a file? I’m not entirely ignorant in these matters, I like to think — but I’m sure input from you advanced ID users could help.

  11. November 22nd, 2007 • 5:20 pmLink

    Ooops, that solitary “Gain” should of course have been “Dot Gain”. (Nothing ventured, nothing gained!)

  12. David Blatner
    November 26th, 2007 • 2:10 pmLink

    Klaus, the question of how to create a good CMYK setting is the subject of many a good argument over beer and smoked ika (squid… what can I say? I developed a taste for it…)

    The best option, in my opinion, is to create a custom ICC profile for your press, your ink, your paper stock. You can do this relatively easily by downloading a color target, having your printer print it (perhaps in the trim area of some other job?) and sending it in to a profiling service. For example, check out the ColorValet service at Chromix.

    Alternately, you can find a wide range of color profiles available for free or for purchase on the Web. Finally, you could target the proofing system rather than the final output. If the printer can match the proofing system, then that might be just as good.

    We get into this in far more detail in Real World Photoshop. The CS3 version of the book is due out by the end of the year, I believe.

  13. November 27th, 2007 • 12:41 pmLink

    David, thanks for your reply. I don’t have time to go the ICC profile creation route, before we go to press, so I must simply make a test page with many reasonable variables and pick the best result. But thanks for the ColorValet tip, I might be able to do that somewhat longer-range. And I could talk to the printer about targeting a proofing system — but the problem is that I’ve already talked to the one guy doing pre-press at the print shop we have to use, and he’s rather clueless about anything which goes beyond the basic of his 9-5 routine. (It’s not as if Oslo, Norway is crammed with brilliant pre-press folks whose brains I can pick at my leisure!)

  14. Elizabeth Lass
    November 28th, 2007 • 3:53 amLink

    Hi, This actually happens to me quite a bit. I found a good trick online quite a while ago, and I’d like to give them credit, but I’m afraid I can’t locate the source. :( But the trick goes like this:
    When a spot cannot be deleted from the swatches palette, and you know for sure it’s not in use by any artwork, create a rectangle and fill it with the offending swatch. Cut the object and paste it into a new doc with no other swatches. Save it as a PDF set to “Press” or “Print” (don’t let the color be converted). Place that PDF into your original doc, then delete it. In my experience, the bad swatch will now be ‘unlocked’ and you can trash it in the palette. IMO, this is faster than saving over to INX, and shouldn’t cause any further problems. {Thanks for the awesome blog and podcast, btw!!}

  15. November 30th, 2007 • 2:46 pmLink

    Thanks, Miss Lass, for an ingenious method! I haven’t tried it yet, but it sounds so crazy that it’s almost bound to work. :-)

  16. November 30th, 2007 • 3:27 pmLink

    David, I’ve now looked a bit more at the ColorValet service at Chromix. It seems very promising and professional and useful — but it’s also $300 for a single press profile, and that’s far beyond my reach (my client wouldn’t cough up that, I well know without asking).

    I’ve now made my own SepTest as an A3 PDF file, and my printer ran it on his Heidelberg today, while I was “sitting on him.” It gave me heaps of very useful information about both separations, resolutions and sharpenings — as much as I could cram into one A3 sheet. I’ve placed the PDF here, for free download to all who’s interested (about 3.2 people in the whole world, I’d guess):

    http://www.klausnordby.com/repository/SepTest.pdf

  17. December 2nd, 2007 • 4:42 pmLink

    Heads up that Klaus’s PDF is 25 MB in case you have a slow connection.

    It’s a single page showing the effects of different settings (ppi, dot gain, total ink, etc.) applied to the same high-res image.

    Here’s a screen shot:

  18. Felicia
    February 27th, 2008 • 8:43 pmLink

    I decided to brave the INX edit option and so far it’s worked flawlessly… however I made sure to keep dupes in case it bits me in the a-word later ;)

    Thanks for the tip Mr. Blatner! I REALLY appreciate it :D

  19. Jesse
    April 8th, 2008 • 3:03 pmLink

    I tried the PDF cut-paste-save-delete technique but it didn’t work for me (CS3). :(

  20. April 14th, 2008 • 9:03 pmLink

    Hi all,
    It seems simple to solve. Just created an object in Illustrator with the color swatch you want to remove. Place the eps file into the Indesign document and just delete it. Now the swatch gets activated and you can do whatever changes on this. hope this works on all the documents.

Subscribe to the Discussion

Get the ongoing discussion surrounding "Color Swatches That Won’t Delete" delivered to you. Click here to subscribe via RSS.

Leave a Reply

You can use limited HTML tags, such as <em></em> for emphasis/italics and <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

InDesignSecrets reserves the right to edit and/or remove posts and comments.