Skip to main content
Simone5
Aug 27, 2024 8:35 PM UTC
Question

Remove variable with API

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
Aug 27, 2024 8:42 PM UTC

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
Aug 28, 2024 6:49 AM UTC

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