How to remove c++ class

So I am trying to remove c++ class from my project because I accidentally did make an actor when I needed to make a pawn.

I did find a solution from the internet that says to delete the source file for it and then delete the binaries folder. I did that and then unreal asks to build the project and the build always fails.

This did work before but it seems after I updated the unreal engine it does not work anymore. Any ideas on how to remove c++ class?

First, you have to remove it from your solution.

However, that does not fully remove it. The file still exists, it is just no longer being referenced to. So, you go in and manually delete the cpp and .h file.

That’s it. No need to rebuild or anything. Here is a reference to a similar question, as well.

1 Like

thank you. it worked.