skip to Main Content

Deleting a C++ Class

This workflow was taken from the UE4 answershub. In this tutorial you will find the steps required in order to delete a C++ class from your project.

Deleting a specific C++ Class

In order to delete a C++ class from your project follow the steps below:

  1. Close Visual Studio
  2. Close UE4 Editor
  3. Remove the corresponding .cpp and .h file from your disk in explorer
  4. Remove everything in the folder Binaries
  5. Right click the .uproject file and click Generate Visual Studio project Files
  6. Get back to your normal activity

If an error pops up telling you to rebuild the project when launching the UE4 Editor click “Yes”.


This Post Has 7 Comments

  1. It’s 2218 year now. Humanity colonized all solar system, teleportation for short distance was invented, everything in the world is driven by AI’s, genetic engineeric defeated all diseases and private space companies is about to make fligts to another stars avaliable for everyone.
    And still, you can’t delete c++ class from Unreal Editor.

  2. If your project fails to rebuild when you click “Yes” after reopening it, open your IDE and make sure it compiles and builds there. If you have any errors then you need to resolve those and rebuild before opening UE4.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back To Top