EF Core scaffolding does not delete old files. It only creates/updates based on what's in the database. If you delete a table, you need to manually delete the corresponding entity class file in your project folder.