Unpublish main component duplicate from shared library

There’s an old main component in the shared library that I would like to remove. This component is a duplicate of a new component that was created. How to unpublish a single component?

Hi there,

Thanks for reaching out. As you may have already tested, right-click on the component in the panel as you shared, you can choose “Hide when publishing”. By doing this, the component won’t be included in the updates when publishing.

This is the ‌help center article: https://help.figma.com/hc/en-us/articles/360039238193-Hide-styles-components-and-variables-when-publishing#h_01HD20M7HSP88R758KMWPE917D

I hope it helps. If you have further questions, please feel free to add your comment!


Hi @y_toku If you deselect a component in the Publish Library, a component which was previously published, will deselecting it remove that component from the library, or will it just not publish an update to that component?

@Yaniv_Nord thanks for the reply. It will just not publish and update to that component. In the Library, hidden components remain in the Assets panel, but changes that are made to them won’t trigger any publishing events.

I hope this clarifies your question!


Thanks @y_toku !

If unchecking does not unpublish, I’m still don’t understand how I would go about unpublishing a previously published component?

Thank you!

@Yaniv_Nord My apologies for the delayed response! To do this, you’ll need to unpublish the library file initially. Then, when you republish it, make sure to hide the previous components from the library. This method allows you to maintain the connection to the main component with the instances you’ve used without simply deleting them.

I hope this explanation is clear.