# How do I remove a C++ class from my project code?

**URL:** <https://forums.unrealengine.com/t/how-do-i-remove-a-c-class-from-my-project-code/305447>\
**Category:** C++\
**Tags:** unreal-engine, bug-report, editor, feedback, UE4, question, CPP\
**Created:** [January 30, 2015, 8:23am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-c-class-from-my-project-code/305447 "2015-01-30T08:23:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Co](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Co](https://forums.unrealengine.com/u/Co)\
**Post date:** [January 30, 2015, 11:52am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-c-class-from-my-project-code/305447/5 "2015-01-30T11:52:47Z")

</div>

I did it using the following steps (with UE4.6.1):

1. close Visual / UE4 Editor
2. remove the class .cpp and .h from disk in explorer
3. remove everything in Game\Binaries
4. run GenerateProjectFiles.bat
5. open UE4.sln
6. get back to normal coding activity

If you need to rename a class you can rename the files on disk instead of step 2 and 3 (and then adapt the code to get classname matching filename)

Hope it will work for you too.

---

_[View the full topic](https://forums.unrealengine.com/t/how-do-i-remove-a-c-class-from-my-project-code/305447)._
