Skip to main content
step34
April 20, 2023
Solved

How to remove an imported component?

  • April 20, 2023
  • 1 reply
  • 523 views

Hi,

When using " importComponentSetByKeyAsync" it imports the ComponentSetNode into memory and I can use it to create instances via my plugin.

The issue I have is that the Node is first added to the memory, but there doesn’t seem to be a way to remove it from memory if I want to. The .remove() method only works on nodes that reside in the document.

Does anyone know if there is a way to clear the remote Nodes from memory?

This topic has been closed for replies.
Best answer by tank666

The only way to clear the memory is to reload the file tab.

1 reply

tank666
tank666Solution
April 20, 2023

The only way to clear the memory is to reload the file tab.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank