CmdID / PowerShell / Cmdlets / Uninstall
Uninstall-TransportAgent
Use the Uninstall-TransportAgent cmdlet to unregister transport agents from Exchange servers. Exchange PowerShell reference
From the Exchange PowerShell reference 5 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the display name of the transport agent that you want to uninstall.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-TransportServiceThe TransportService parameter specifies the transport service that you want to view or modify.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.