# 4.9.2 Deleted actor still available to select in iheritance window

**URL:** <https://forums.unrealengine.com/t/4-9-2-deleted-actor-still-available-to-select-in-iheritance-window/340237>\
**Category:** Community & Industry Discussion\
**Tags:** Class, unreal-engine, remove, question\
**Created:** [December 1, 2015, 6:09pm UTC](https://forums.unrealengine.com/t/4-9-2-deleted-actor-still-available-to-select-in-iheritance-window/340237 "2015-12-01T18:09:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BujakD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BujakD](https://forums.unrealengine.com/u/BujakD)\
**Post date:** [December 1, 2015, 6:09pm UTC](https://forums.unrealengine.com/t/4-9-2-deleted-actor-still-available-to-select-in-iheritance-window/340237/1 "2015-12-01T18:09:50Z")

</div>

Hello,

repro steps:

1. Create new blank c++ project

2. Go to Add New → C++ Class and create new class inherited from Actor. Name it MyActor.

3. Open VS and add this code in MyActor::Tick() function:

4. Add #include “Engine.h” in MyActor.cpp

5. Compile from Editor

6. After hot reload create new blueprint, inherit it from “MyActor”. Name it BP\_MyActor. Put an instance of this blueprint into the world.

7. Hit pie. You will notice message “tick form my actor” message gets printed. close PIE

8. Save all (Ctrl + s). Remove instance of BP\_MYActor from world. Remove BP\_MyActor from content browser. Save all

9. Go to vs. In solution explorer remove MyActor.h and MyActor.cpp from solution. (rightclick and “Delete”)

10. Go to project source directory. Remove files MyActor.h and MyActor.cpp.

11. Go to Editor. Hit compile button. Compilation is successfull

12. Create new blueprint, try to inhrit it from MyActor. You shouldn’t be able to do that but You can. Error.

13. You can even put instance of created blueprint into the world and see that “tick from my actor” message still gets printed. MyActor class still exists withing UnrealEditor even after removing it and sucsessfull recompilation.

thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 1, 2015, 9:10pm UTC](https://forums.unrealengine.com/t/4-9-2-deleted-actor-still-available-to-select-in-iheritance-window/340237/2 "2015-12-01T21:10:00Z")

</div>

Hey-

The references to the class have not been fully removed from the project. After step 10 you need to also right click on the .uproject file and select “Generate Visual Studio project files”. This will refresh and update all of the project files and communicate that the class removed is no longer part of the project.

Cheers

---

<div class="post-metadata">

**Author:** ![BujakD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BujakD](https://forums.unrealengine.com/u/BujakD)\
**Post date:** [December 1, 2015, 11:29pm UTC](https://forums.unrealengine.com/t/4-9-2-deleted-actor-still-available-to-select-in-iheritance-window/340237/3 "2015-12-01T23:29:20Z")

</div>

Hello Dough,

according to Your advice I’ve made those steps:

(Steps 1 - 10 as in original post)

1. Close Visual Studio

2. Go to project directory, left click on project icon, hit “Generate Visual Studio project files”

3. Open vs project. Verify that “MyActor.h” and “MyActor.cpp” are not on the list of project files in solution explorer.

4. Go to editor. Hit compile button. Compilation is successfull but class is still visible in iheritance window. Error

5. Trying to recompile in VS by hitting BUILD-\>Rebuild Solution (maybe this will properly delete class). Recompiling in visual studio fails with this errors:  
68951-  
thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 2, 2015, 7:19pm UTC](https://forums.unrealengine.com/t/4-9-2-deleted-actor-still-available-to-select-in-iheritance-window/340237/4 "2015-12-02T19:19:03Z")

</div>

Hey-

After testing again I have entered a bug report about the deleted class still showing in the list of blueprintable classes in the editor (UE-24045).

Cheers

---

<div class="post-metadata">

**Author:** ![BujakD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BujakD](https://forums.unrealengine.com/u/BujakD)\
**Post date:** [December 2, 2015, 10:32pm UTC](https://forums.unrealengine.com/t/4-9-2-deleted-actor-still-available-to-select-in-iheritance-window/340237/5 "2015-12-02T22:32:20Z")

</div>

Hi,

in step 15 (after adding class, then deleting it, then refreshing VS project) are You also getting this strange compilation error?

thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 3, 2015, 2:13pm UTC](https://forums.unrealengine.com/t/4-9-2-deleted-actor-still-available-to-select-in-iheritance-window/340237/6 "2015-12-03T14:13:58Z")

</div>

I did not get any compile error after removing the class and refreshing VS.
