CmdID / PowerShell / Cmdlets / Remove
Remove-GPO
Removes a GPO. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-Domain, -DomainNameSpecifies the domain in which you want to remove a GPO.-Guid, -ID, -GPOIDSpecifies the GPO to remove by its globally unique identifier (GUID).-KeepLinksIndicates that the cmdlet preserves the links to the GPO in the specified domain, including OUs, and all sites when the GPO is removed.-Name, -DisplayNameSpecifies the GPO that this cmdlet removes by its display name.-Server, -DCSpecifies the name of the domain controller that this cmdlet contacts to complete the operation.-WhatIf, -wiShows what would happen if the cmdlet runs.