Hey frawe-
When you deleted the files for the class, did you do so through Visual Studio or from the project directory? After deleting the files, you also need to right-click on the .uproject file and select “Generate Visual Studio project files” so that VS updates and recognizes that the header/source files were removed from the project.