Skip to main content
Simone5
August 27, 2024
Question

Remove variable with API

  • August 27, 2024
  • 2 replies
  • 176 views

Hello everyone, I wanted to know if anyone knows how to remove a variable through the plugin API. I couldn’t find anything by analyzing the documentation.

This topic has been closed for replies.

2 replies

tank666
August 27, 2024

Call the remove() method of the Variable object.

variable.remove()
figma.com
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
Simone5
Simone5Author
August 28, 2024

Thank you! I was looking in the wrong place, I’m feeling stupid 😑