Is there to clean un use variables in blueprint?

In my blueprint, there are a lot of unused variables after the few test here and there.
I want to delete some unused variables and I don’t want to check 1 by 1.
So is there a shortcut to delete?
The same goes in the variables section on the left side.

1 Like

Nope :slight_smile:

It looks like RemoveUnusedVariables is something, that could help you…
EDIT: not sure any more, it says “Any Blueprint Created variables…” - but still, interesting

Ehhhh…really?

1 Like

I already saw that before I ask help it here.
It appears that the article can’t help to remove unnecessary variables. :smiling_face_with_tear:

Welp…

It seems that’s exactly what it does, but you’ll need to write some widget utility code to do it…

First, I was not sure about what “blueprint created variables” in the docs mean, but I believe this just means, that it must not be any inherited variable. So you should give it a try and create some utility using that node, passing in the blueprint and test this.

1 Like

Hi! There is a shortcut that maybe can help

Before:
image

image
image

After:
image

2 Likes

FAB - didn’t ever notice that!.. :smiley:

Ah… but they could be used elsewhere… :thinking:

2 Likes

Thank you for the comment & this really helpful.
That is what I really need.

Thank you again for the help!