Random "Used Variables" display as options even though they're not in the project

I’ve noticed in my Figma file, I get these odd ‘Primatives’ and ‘Tokens’ which should when I click the Variable icon next to “Page”.

I do have a default and one alternative Mode - which is under “Local Variables”. But the other ones shouldn’t exist at all. I haven’t actually ever created a “Tinted Background” or “Light Background” Mode in any project ever. So I have no idea where they’re coming from?

The fact there’s two “Tokens” is also confusing?

There are no Libraries added to the file and none are “In Use”. I’ve attached screenshots showing the rogue options as well as the variables I have setup in the file so you can see there are no other Modes there.

Any ideas? I thought they could be coming from other files within the “Team” but if they’re not linked and share nothing in common, this shouldn’t be the case, right?

Thanks in advance!


Screenshot 2024-05-25 at 10.35.13

As a follow up to this. I literally deleted every single element in the file, so every page was blank and the issue remains.

So I duplicated the Figma File. Deleted/updated it so there is only 1 single mode. And I get the “Red Mode” listed from another completely unrelated file. They don’t share a design system or anything, all components and variables are local.

And if I look at the Local Variables there is a single Primatives/Tokens Collection and only one Mode. So no idea where the others are coming from?!

Hey @Stephen_Moy1, thanks for reaching out and sorry for the delayed reply!

It looks like you are seeing those used variables because they are still linked to some components in your file. Possibly if you copy-pasted these components into the file. Can you try to detach deleted variables as follows?

  1. In the file with the issue, select all the content on the page, then go to the ‘Quick actions’ menu in the top left menu of the file and search the command ‘Detach deleted variables’ and click this.
  2. Do this on each page
  3. Then, go to each library file that contained variables, then select all the content on the page, then go to the ‘Quick actions’ menu in the top left menu of the file and search the command ‘Detach deleted variables’ and click on it.
  4. Do this on each page, then publish the changes.
  5. Then accept the library updates in the file with the issue.
  6. Then close the file with the issue and open this after a few minutes.

You may still need to manually check your components and make sure to detach any variables which are not being used. Please let us know if this helps!