CmdID / PowerShell / Cmdlets / Uninstall
Uninstall-ADServiceAccount
Uninstalls an Active Directory managed service account from a computer or removes a cached group managed service account from a computer. Windows Server PowerShell reference
From the Windows Server PowerShell reference 5 parameters Its page in the reference
Parameters
-AuthTypeSpecifies the authentication method to use.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ForceRemoveLocalIndicates that you can remove the account from the local security authority (LSA) if there is no access to a writable domain controller.-IdentitySpecifies an Active Directory account object by providing one of the following property values.-WhatIf, -wiShows what would happen if the cmdlet runs.