How to Select and Delete a connected input component?

see Automated Value list C# Grasshopper

If inside that “ExpireIt” method you add:

IGH_Param vl = this.Component.Params.Input[0].Sources[0];
GrasshopperDocument.Objects.Remove(vl);

it deletes the value list component…