# Blueprint: Deleting local variable deletes it in other functions

**URL:** <https://forums.unrealengine.com/t/blueprint-deleting-local-variable-deletes-it-in-other-functions/300184>\
**Category:** Blueprint\
**Tags:** scope, unreal-engine, question, Blueprint\
**Created:** [November 30, 2014, 1:04pm UTC](https://forums.unrealengine.com/t/blueprint-deleting-local-variable-deletes-it-in-other-functions/300184 "2014-11-30T13:04:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evols](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Evols](https://forums.unrealengine.com/u/Evols)\
**Post date:** [November 30, 2014, 1:04pm UTC](https://forums.unrealengine.com/t/blueprint-deleting-local-variable-deletes-it-in-other-functions/300184/1 "2014-11-30T13:04:42Z")

</div>

I have multiples functions with the same local variables in, they are in the same class Blueprint. Let’s call Function1 the first function and Function2 the second one. In each, I have a local variable called Var. Both Function1 and Function2 use Var. But, I deleted Var, only in Function1. And it deleted all calls to Var in Function2, even if I didn’t do anything for this var in Function2.

Before:

 ![22555-after.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/a/90adcec195dff6fe9a8ae4b34c014d138a2d424b.png)

After:

 ![22554-before.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/f/72f3fc8c24634cd52ea8078f7aa4b165ca55b740.png)
