Skip to main content
Solved

Components from a file that doesn't exist anymore


Ricardo_Patta1

I have some components in a file and I can’t delete or rename them. Also when I click “Go to main component in library” it takes me to an old file and asks me if I want to restore the component. Even though I restore the component I still cannot delete the component from the first file.

Best answer by Celine_D

Hey everyone,

@Elaine_Wang After investigation internally, this usually happens if an instance of a component is being used in a file, then it would appear in the search results/asset panel even if the main component was deleted.
(As a workaround, I’d suggest to check first if you have any instance of that component in your file. If so, please try to remove/detach all instances of this component in the design file then this should not show in search results, as they will be no longer tied to the library file.)
To select all instances at once, you can use the Quick Action called “Select all with same instance” to detach these instances in bulk.

First, select one of the instances on your canvas. Then choose “Quick actions…” from the main menu in the upper left:

Start typing “Select all with” and choose the “Select all with same instance…” option below.

Also another workaround, I would also recommend clearing your browser/desktop app cache to see whether this resolves your issue, as this could be being caused by cache.

You can clear the desktop app cache on Windows under the toggle-arrow at the right of the top toolbar under Help > Troubleshooting. If you’d prefer to manually clear your cache you can:

  1. Close the Figma desktop app
  2. Open the Start menu, and paste in this, followed by enter: %APPDATA%\Figma
  3. In the window that opens, delete the Desktop and DesktopProfile folders if they exist
  4. Launch the desktop app again

You can clear the desktop app cache on a Mac in the Help menu under Troubleshooting. If you’d prefer to manually clear your cache you can:

  1. Quit the Figma desktop app
  2. Open Terminal.app and enter the following command: rm -rf "$HOME/Library/Application Support/Figma"
  3. Try opening the desktop app again

If this doesn’t help, I’d recommend you to reach out directly to the support team with a copy of your file (as it can be a specific issue with your file, so it’s hard to tell without investigating it): here

Be sure to use your Figma mail account, provide a link to your file and share it with support-share@figma.com so we can take a look. Hope this helps!

View original
This topic has been closed for comments

31 replies

JanKragh
  • 77 replies
  • May 20, 2022

Hi @Ricardo_Patta1 ,

Can you share your file or attach a screenshot?

Perhaps your component instance is locked?


Ricardo_Patta1


Ricardo_Patta1

I’m not able to delete this component and when I click “Go to main component” it takes me to another file and asks me to restore the compnent because it doesn’t exist anymore. But this action doesn’t allow me to delet the component from the first file. It is like a ghost component stucked in my file.


JanKragh
  • 77 replies
  • May 20, 2022

Ahh ok, now I understand. You need publish the file from where the components was deleted to remove it from the assets:

image


Ricardo_Patta1

And when I don’t have access to the file anymore?
image


JanKragh
  • 77 replies
  • May 20, 2022

If you can’t get permission to access the file, you can perhaps just disable the library so it does not show up in your assets?


Louis_Babinard

I also have this problem. A (button) component that was deleted from a library remains in the assets panel. Doing a search using a plugin (Instance Finder) finds zero results. Pulling the component out of the assets panels and selecting ‘go to main component’ takes you to the page where it used to be but it’s no longer there.

Even turning the library off in other files doesn’t remove it.


RobKovacs
  • New Participant
  • 5 replies
  • October 14, 2022

+1 Louis… not sure how I managed this, but here’s a video:

It seems like if you don’t have the source file open, it does what I posted above. If you do, it just takes you to the page of that file that’s currently open, and does nothing.

Ultimately… if this component was removed from the library… why is it even in the Assets panel at all??


Armando_Breton

I feel your pain. I dealt with this same problem for a couple of months until today.
I found a ‘hacky’ way to get rid of those ghost files.

  1. Drag the component you want to delete into your art board
  2. Right click on it and select ‘Go to main component’
  3. Right click on it (the component you just restored) and select ‘Flatten’
  4. Delete both the flattened image(s) + the initial component you dragged into your art board

It should remove it from your assets.

Give it a go and let me know if it works with you as well 🙂
@Louis_Babinard @Ricardo_Patta1


Kristina_Goryacheva

Hi Armando! Just wanted to let you know that your hack saved me! I struggled so long with this problem! Thank you so much! 💚


Abdullah_Malik

@Armando_Breton … Point # 3 - 1. “Right click on the component group you just restored and select ‘Flatten’”

There is actually no component group in that file that is left to flatten. Can you clarify this, thanks


Armando_Breton

Hi, @Abdullah_Malik
I’m talking about the component itself (the one you just dragged from your assets library into your art board).
If you need urgent help, I’m happy to jump in a call and clarify. My email is armando.breton@seermedical.com

P.S. I’m glad I could help @Kristina_Goryacheva


Abdullah_Malik

Hey, @Armando_Breton figured it out. Thanks a bunchhh!!


Thibaut_Lemonnier

Hello !
I have the same problem as you.
I went to “Go to main component”, but in the file I saw nothing… I cannot “Restore the component”.


Kopacz_Karolina

Hi everyone!

I have the same issue - I have a component which has been deleted from a library and we want it gone but it still comes up in the assets panel. When I drag it into my art board and click on ‘Go to the main component in library’ it asks me to restore it ( ‘Restore the main component to continue making edits to it’). However, I do not want to restore it.
Is there any way to get rid of it and make sure it doesn’t appear in the assets panel again as it just confuses other designers.

Thanks for your tips @Armando_Breton but is there any way to get rid of a component showing up in the assets panel without restoring it?

Many thanks in advance for sharing your tips 💓,

Karolina


tank666
  • 4863 replies
  • April 4, 2023

You must publish the update from the library (you will see the status “removed” next to the component name), and accept the update in your files that use this library.


Kopacz_Karolina

Thanks @tank666, I’ve just tried that but unfortunately the component still shows up in the assets panel. 😔


Armando_Breton

Hello! Sorry I just read your message @Kopacz_Karolina ! Happy to jump into a video call and help 🙂 . Please send me your deets and the best times to chat to armando.breton@seermedical.com and I’ll send you an invite.


Armando_Breton

Are you still having a problem with it?


Sand.on
  • 24 replies
  • April 12, 2023

Also running into this problem and it’s only getting messier as time goes on and more components are created, updated, deleted, etc. I’ve tried the flatten and remove solution but it doesn’t do anything to remove the asset from showing up in the assets panel. Figma shows me literally every component I’ve ever created and every component I’ve ever deleted. It’s counter-productive to the whole point of syncing libraries.

"2. Right-click on it and select “Go to main component” - This step takes you to an artboard where the asset used to be (or attempts to access a file that doesn’t exist). So there’s nothing to restore, flatten or delete.


William_Ryan

@Sand.on I think I’m experiencing a similar problem as you, and nothing in here has helped.

I created a Row component in a library a while back that was then used in various files. Later, I redesigned the component by creating a completely new one, named it Row New, and deleted the old Row from the library.

Now I’m finding files that still have instances of the old Row. If I click “go to main component,” like others have mentioned, it’ll open up my Library file but doesn’t actually go to any component (as the old Row no longer exists).

I also have no option to restore that old component anywhere.

Not sure if I did something wrong throughout my workflow but I agree that redesigning/updating components can get really messy unless you stick with just tweaking the existing components.


Sand.on
  • 24 replies
  • April 13, 2023

Yeah, if you’re only using the old component in a few places you might be able to clean up the assets panel if you have a small number of instances where the old component is used and replace those with your new component.

I’m not willing to do that as I have hundreds of instances that would need to be replaced, and replacing instances doesn’t always work as intended with Figma. This is why making libraries available to certain files should serve the purpose it is intended for, but actually, Figma shows assets from libraries that are not even shared…if I wanted to see those assets I’d toggle that library on for that file. Seems so simple.


Kirby_Evans

I ran into the same issue today, as well. I think I figured out how to fix this as it’s not entirely intuitive, at least for me. Within your component library, go to “Publish library…” This will open a dialog with a list of component for you to publish. Select the components that you had deleted, but are still showing up in the Assets panel within your other working files. The components I had deleted showed up in the list and were labeled as “modified” and were dimmed a bit. I selected those and then selected the “Publish” button in the lower right. This seemed to do the trick and removed the duplicates/deleted components from my assets panel. Hope this helps some folks.


Saladin_Host

I did it. tks


Luiza_Ramos

It still happens. @Figma_Support do you already have a sollution for that?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings