What is delete a class c++?

helo,

I created a C++ class and I can’t delete it.
I remove from the root folder of my project all files named like this class i want to remove but this classe appears always !!
Why?

thanks

Hi @Bomboobiii! This is a common issue when working with C++ classes in Unreal Engine.

Even if you delete the .h and .cpp files manually, the class still appears in the project because Unreal Engine uses cached and compiled data that must also be cleaned.

Here’s how to fully remove a C++ class from your Unreal project:

  1. Close Unreal Engine and Visual Studio.
  2. Delete the class files (.h and .cpp) from your project folder.
  3. Delete these folders from your project directory:
  • /Binaries/
  • /Intermediate/
  • /Saved/
  1. Regenerate your project files:
  • Right-click the .uproject file → select Generate Visual Studio project files.
  1. Open the project again and rebuild it.

Tutorial

Forum:

If you’re still facing challenges or have new questions, feel free to share