# Ghost references from deleted variable

**URL:** <https://forums.unrealengine.com/t/ghost-references-from-deleted-variable/391680>\
**Category:** Editor Scripting\
**Tags:** reference, unreal-engine, question\
**Created:** [April 23, 2017, 8:44am UTC](https://forums.unrealengine.com/t/ghost-references-from-deleted-variable/391680 "2017-04-23T08:44:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [April 23, 2017, 8:44am UTC](https://forums.unrealengine.com/t/ghost-references-from-deleted-variable/391680/1 "2017-04-23T08:44:59Z")

</div>

Hello !

I defined an anim asset in an actor:

```
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Yag)
	UAnimationAsset* WeaponBlendSpace;

```

Then in the blueprint inheriting from that actor, it was assigned a blendspace1D (created in the editor).

Then at a point id didn’t need it anymore and deleted the variable in the code.

When i wanted to delete the blendspace1D in the editor, it warned me that references to it still existed in all the actor blueprints.

I forced the delete (as there couldn’t possibly remain any trace of it since it had been erased from code).

Now every time i open the editor, i get messages of missing ref, and the ref viewer of every BP still shows the ghost ref.

 ![135223-bsrefpb.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/0/6002c878d383221781c11c160f5cbb5d30e552ac.jpeg)

Everything else works fine and i can work with no trouble, but still this doesn’t smell normal.

Is there a cache somewhere i should clean or is this a real problem ?

Thanks !

Cedric

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [April 25, 2017, 6:58pm UTC](https://forums.unrealengine.com/t/ghost-references-from-deleted-variable/391680/2 "2017-04-25T18:58:01Z")

</div>

Hello ,

Thank you for reporting this issue. I was able to reproduce this and have entered a bug report for this behavior which you can find here: [UE-44361](https://issues.unrealengine.com/issue/UE-44361). While testing this, I did find a workaround for the issue however. While I thought using “Fix up redirectors” would work, it didn’t end up changing anything. On a hunch, I tried moving the affected blueprint asset to another folder and that got rid of the reference. Moving the asset back doesn’t seem to restore it either so this should be a suitable fix. Depending on your references, you may want to fix up redirectors after making this move though.

---

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [April 25, 2017, 8:36pm UTC](https://forums.unrealengine.com/t/ghost-references-from-deleted-variable/391680/3 "2017-04-25T20:36:19Z")

</div>

Thansk Matthew, both for the answer and the workaround !

Cheers

Cedric
