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

Jim_Knox
Active Member
October 16, 2024

apparently its a know bug and they are working on it, im having the same problem, I spoke to the PM on Reddit and he said it was W.I.P

neatlyJulian
October 22, 2024

Still not fixed and easy to reproduce:

  1. Turn a file with variable modes into a library
  2. Create other file that makes use of this library (e.g. for colors)
  3. Remove one of the modes of the file in step 1
  4. ¯_(ツ)_/¯
  5. Pain
Jordan_Hughes
New Participant
November 6, 2024

After lots of experimentation and a number of iterations on a colour system using Variables and Modes I now have lots of orphaned modes supposedly used in a file and being displayed at page level despite the variables no longer existing and not being used/assigned anywhere in the file.

Figma, please clean this up!

Maciej_Balasinski
November 6, 2024

@dvaliao happy to share a file and use case

djv
Figmate
Community Support
November 6, 2024

Thanks, @Maciej_Balasinski!

Please include the file link in this thread and share edit access with support-share@figma.com.

If you’re not able to share your file publicly, please share your file with us here: https://help.figma.com/hc/en-us/requests/new

Be sure to use your Figma account email, include a link to the file, and share edit access with support-share@figma.com, so we can take a closer look.

kasperland
New Member
January 27, 2025

I’ve encountered the same issue. Any news on this? ​@dvaliao 

Erik Van Lankvelt
New Member
January 30, 2025

I’ve encountered this issue as well.  One of our designers deleted variables from a Figma file, but when I use the Figma API (getLocalVariables) to get that file’s variables, it’s still returning the deleted variables.

msllrs
New Member
February 6, 2025

its been 84 years

msllrs
New Member
February 7, 2025

so, i think i solved it...

first, the easy part:

publish your tokens file with all variables visible (uncheck the hidden ones). then, update the offending library to the latest version of this file.

now, the tedious part:

brace yourself, especially if your component library is large. go through each section, component set, and component. check the modes dropdown at each level. make all hidden layers visible and inspect the selection colors. you'll likely find stray items linked to non-existent variables. if nothing shows in a component's layers, try replacing the frame it's in. sometimes, it's the sections or frames causing issues.

hope that helps!

Bora_Dan1
New Member
February 13, 2025

 ++