# What is delete a class c++? 

**URL:** <https://forums.unrealengine.com/t/what-is-delete-a-class-c/2481320>\
**Category:** World Creation\
**Tags:** unreal-engine, fortnite\
**Created:** [April 29, 2025, 1:33pm UTC](https://forums.unrealengine.com/t/what-is-delete-a-class-c/2481320 "2025-04-29T13:33:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BRGEzeHulton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BRGEzeHulton](https://forums.unrealengine.com/u/BRGEzeHulton)\
**Post date:** [May 1, 2025, 2:57pm UTC](https://forums.unrealengine.com/t/what-is-delete-a-class-c/2481320/2 "2025-05-01T14:57:41Z")

</div>

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

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/7/cd795c4a3e699124d9f416badb5fcd38fa2ee449.jpeg "Unreal Engine C++ Tutorial #7: Misc \*Removing C++ Classes\*") ](https://www.youtube.com/watch?v=kU9EXDHPJiQ)

Forum:

> [@How do I remove a C++ class from my project code?](https://forums.unrealengine.com/t/how-do-i-remove-a-c-class-from-my-project-code/305447/12):
>
> Thanks - I wouldn’t have known that. I probably would’ve tried it at some point though :).

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

---

_[View the full topic](https://forums.unrealengine.com/t/what-is-delete-a-class-c/2481320)._
