check out the admin guide on page 126 NCM 7.8 Administrator Guide - SolarWinds Worldwide, LLC. Help and Support
the example they have is for changing vlan memberships. However the same concept can be applied to your use case.
You will build out your array with ports that match your requirements. Then loop through them and remove the descriptions.