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.
Hi @Ricardo_Patta1 ,
Can you share your file or attach a screenshot?
Perhaps your component instance is locked?
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.
Ahh ok, now I understand. You need publish the file from where the components was deleted to remove it from the assets:
And when I don’t have access to the file anymore?
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?
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.
+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??
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.
- Drag the component you want to delete into your art board
- Right click on it and select ‘Go to main component’
- Right click on it (the component you just restored) and select ‘Flatten’
- 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
Hi Armando! Just wanted to let you know that your hack saved me! I struggled so long with this problem! Thank you so much! 💚
@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
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
Hey, @Armando_Breton figured it out. Thanks a bunchhh!!
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”.
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
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.
Thanks @tank666, I’ve just tried that but unfortunately the component still shows up in the assets panel. 😔
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.
Are you still having a problem with it?
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.
@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.
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.
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.
I did it. tks
It still happens. @Figma_Support do you already have a sollution for that?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.