C++Builder: Generated code is not removed when component is deleted


I just installed Embarcadero C++Builder 10.4 Community Edition.
I created a new VCL-applcation and added some components TButton and TLabel to the form.
To the button I added an OnClick event:
void __fastcall TForm1::Button1Click(TObject *Sender)
Button1->Caption = "Hej!";

When I delete the button in the designer, the generated code is not deleted.
From Delphi 10.4 I know,that the generated code is removed.
Is this generally not working in C++Builder and do I need to remove the code manually?
I also tried a FMX application, it does not work either.

Comments are closed.