Remove unused variables

Hi folks,

I’ve copy and pasted a section from a template into my own project. After deleting elements I don’t need, how do I remove unused variables?

Loom video below

Hi,
when you open a variable, you can click on “Find variable” button to see if they are use or not on other page.
Then you can remove the variable (as you show on the Loom)
If the remove button (and the save button) is not available, it’s mean it’s a variable generated on page load by a component. Are they still here when you refresh the editor?

It’s seems that’s not the case on your loom, so it might be a bug on our side. Can you let me know if refresh fix the problem? If not, can you send me the link to your project by private message?

1 Like

Ah thanks @aurelie, after coming back and refreshing the editor again the unused variables have disappeared.

Thank you.