Skip to main content
July 11, 2023
Solved

🚨 Variables: Deleted collections and modes don't disappear

  • July 11, 2023
  • 63 replies
  • 8765 views

When Variables was released I created some collections for testing. Since then I settled on a final version but the old deleted collections still appear in the page/layer selection on the right panel. The same is happening to deleted modes.

This topic has been closed for replies.
Best answer by djv

Hey All, sorry for the continued frustration!

As already mentioned above, our team needs your specific files where this is occurring to allow them to repro and work on the fix.

If you have’t already, you can submit a bug report to our support team directly via the form here: https://help.figma.com/hc/en-us/requests/new?ticket_form_id=360001744374

Be sure to use your Figma account email, include a link to the file(s) where this is occurring, and share edit access with support-share@figma.com.

63 replies

Adam54
November 1, 2023

@jjcm I think it would make sense to have these variables (or at least an option) completely removed everywhere when deleting.

Is this something in the works. It’s quite frustrating right now, because I want to move my design system to variables, but I have these ghost ones that stick around. I tried the solution offered but it’s just not working.

Thank you

November 7, 2023

I’ve run the Detach deleted variables command and it showed a message that said no deleted variables usages were found, and the ghost collection persisted. But then i found where I was using the deleted variable and changed it to a new variable and that made the ghost collection disappear.

Sebastian_Graz
New Member
December 7, 2023

I also ran into ghost color variables persisting, and running the command for deleting detached variables did nothing, nor did restarting Figma. Can supply file for repro if needed.

Edit: I discovered some icons with the union boolean containing some old color tokens, but they do not show up in the ‘Selection colors’ view so very hard to track down. If others run into the same I’d recommend really diving deep into the layers for hidden stuff (esp components with hidden elements)

January 15, 2024

Hi there,

this is also affecting the Variables REST API. It would be really helpful to know which variables are deleted…

Thank you

kmh
New Member
January 31, 2024

I just ran into this – a variable which I have deleted is still assigned to the width of a frame.

Problem is, I can’t remove the nonexistent variable from the width property.

I tried doing a detach deleted variables command as the solution above instructs, but it said it found zero variables to detach and did nothing. The old, deleted variable is still assigned to the width.

I can assign an existing variable, but the truth is I don’t want any variable at all anymore. This is a frame with a lot of complex setup in it, so I really don’t want to start over again.

Schaefer_Christian_SGRE_TE_PPS
March 13, 2024

hi, this is still a serious issue … how am i supposed to work professionally with this?!
please asap implement the following options for variable collection updates:

in the importing file

  • option ‘delete all variable sets’ (at ones own risk)

  • option 'delete all orphaned / unused sets (and really make it work! this seems to be one of the main issues here, that even though there are no links any more to variables, their sets still appear as an option

  • update options for variable set imports:

  1. ‘overwrite all variables’; note that this implies logically that there may be some orphaned assignments after the update, in case there were tokens deleted that have been in the last update

  2. ‘rename variables’: this may be a bit tricky with the linkage (how do you know that semantic/primary/button/default is the same as semantic/primary/button/bg in the last update?); i guess here a detailed delta matrix would actually help where one can decide which variable became what … i know this is a lot to ask, but this problem just logically arises if you work professionally with this kind of stuff

  3. have an overview for all the listed token sets that are available in the UI and the option to brute force delete them!! sorry, but i do find it very disturbing that this is not possible – there is a REASON why they are still listed as options, and it is a total timehole to find out why and where. the only thing that can logically happen with this is that there are now some raw values again, where there had been ‘unlinked’ variable values before … i think you get the point. but it would really help keep things sorted and cleaned up …

in case you have questions, please get back to me
christian.schaefer@siemensgamesa.com

thanks …

Mila_G
New Participant
May 2, 2024

SAME ISSUE. I dont want to have tp permanentely delete design work just to free it from a variable used in an old library!

Ann_Beaver
New Participant
May 23, 2024

Same same… Sometimes it actually works but if I bring in a component that is older and was made with previous variables that were replaced, it will still show all the previous collections.

EllisC
New Member
May 28, 2024

When will this be fixed? This has been causing our team issues for over half a year now…

May 30, 2024

This is happening for me as well now. It didn’t previously happen until today. I am so frustrated.