Remove Output Parameters with the standard C# editor?

Hello folks,

I used these methods to remove outputs
Component.Params.UnregisterOutputParameter Method (IGH_Param, Boolean);

I tried to following this discussion
But again when I have a “decreasing” update the popup window appears.

Is there any safety way to remove OutputParams with the standard C# editor?
Probably with some clever use of these?
Thank you!


  GrasshopperDocument.ScheduleSolution(5, ScheduleCallback);

  private void ScheduleCallback(GH_Document doc)
  { }
  public override void BeforeRunScript()
  { }
  public override void AfterRunScript()
  { }

SharedScreenshot2 (4.9 KB)