Figma Support Forum

Remove master component and detach all its instances

When cleaning up Figma files we tend to remove old master components to keep things neat.

Right now - each time we want to get rid of a master component we are:

  1. marking it with some really vivid and distinguishable color as its fill,
  2. going over whole document to make sure it is not used anywhere,
  3. remove master component

There are some cases where basically we don’t really need to go over every screen to check where component is used however me just want to make sure that we got rid of it. While I love the possibility to restore master component when it’s removed by mistake - I think that it might be handy to have an option to remove master component AND detach all its instances (just to be sure that no one would restore it).


When updates to components with text in them come out, it wipes out all the custom text! If I restore from an earlier version, screenshot images that are fundamental to the design come back at low resolution making it a multi-step process to restore the text :(. Either do a fiddly re-insert of new screenshots or copy the file, go to an earlier version to access the text and then copy back to the original file. Ugh.
Wish I could at least detach all instances with one command. Currently I select all the frames, command+option+b to detach, enter to go down a level, command+option+b to detach, repeat…
To avoid this, I need to detach all instances in every file.

Check out the plugin named ‘Instance finder’ it will help you select all the instances on a page, then you can use Cmd+opt+b to detach them all

or try the plugin called ‘Unused components’… I found it just now, so not sure of drawbacks & limitations

const detachAll => (node) {
if (node.type === ‘INSTANCE’) {
node = node.detachInstance();
if (node.children) {
node.children.forEach(c => detachAll(c));
return node;

1 Like