how to delete a class c++?

Hi,

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

Hey,

Check your project’s build file for reference to the file:
Source/YourProjectName/YourProjectName.Build.cs
Then try delete the intermediate files and binaries folder.

After that Right-click on your .uproject file and select “Generate Visual Studio project files”

Hope that helps.

Can you explicit that?:
Check your project’s build file for reference to the file:
Source/YourProjectName/YourProjectName.Build.cs

In Unreal Engine projects, the .Build.cs file is a C# script that defines how the project should be built. It handles things like which modules to include, dependencies, and build configurations.

You need to navigate to where the file is store on your hard drive. YourProjectName is the name you gave to your project when you created it.