Removing references to variables in new document

I copied a component from a community file, pasted into a new document and removed the variables. How do I get rid of the references from the Page:


I’ve just started having this issue too, whenever I paste in a component from a different project. Go into ‘Local variables’ in the design tab and delete the unwanted variables or collections there.

Screenshot 2024-02-17 at 16.15.40