Skip to main content
Solved

How to remove a componentNode completely?


111749

When I create a componentNode with figma.createComponent and then remove it by calling remove method on the node, I can see the node disappear on the node list panel but I can still access it by figma.getNodeById. I assume figma still store the component info somewhere and could that lead to possible memory leak? Is there a way that I can delete the node complete ?

Best answer by Gleb

It should be deleted completely if there are no depending instances after you reload the page.

View original

2 replies

Gleb
  • Power Member
  • 4706 replies
  • Answer
  • June 21, 2021

It should be deleted completely if there are no depending instances after you reload the page.


111749
  • Author
  • 12 replies
  • June 21, 2021

Indeed. Thanks so much


Reply


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