How do I remove code from a project?

I had extended a class I built to test something and now I can’t seem to compile it without error indicating the removed class. In visual studio I selected both the .h and .cpp files and right clicked → remove. Then I deleted the files from the actual directory and tried to recompile. It’s giving me grief. Is there a better way to remove files?

Just remove them physically from Source directory and regenerate project files (but removeing them manually from project should be ok too), VS project file manager is not really reliable with UBT

How do I regenerate project files? The same bat file that is used to install UE4 called “Generate Project Files”? Also by doing this do I have to recompile the entire engine?

I’ve already “removed” the files from VS, and deleted the files from the disk. When I try to compile my project it gives me an error. UE4 is still referencing the header file that I removed. It’s not referenced anywhere within my code.

Bah, I’m a moron. I did have it referenced somewhere. NM. It’s working now thank you!