API refrence to clean up plugin data from layers?

Unfortunately only the plugin that created these can remove them. I can think of a hack to do this but not sure if it would work 100% (I don’t see why it wouldn’t work though):

  1. Create a new empty plugin
  2. Set its ID to the ID of the plugin that you used (it’s the number in the plugin community page link)
  3. Loop through the nodes (e.g. using Figma.root.findAll) and use setRelaunchData | Plugin API to clear the data in the plugin
1 Like