Don't remove any hardware from the control unit, this would put the port assignments off and screw up the programming. You would remove the unused lines from the pools they are assigned to, and remove the line appearances from any telephone sets. This assumes the system is in PBX mode. Unfortunately, it will probably require a site visit with someone with a laptop running WinSPM software to pull some configuration reports to determine how the lines are currently assigned to make the necessary changes.

Alternative might be to go into Maintenance and busy out the unused trunk ports, so that the system will ignore them.