How to use Powershell to delete a WMI entry

Is it possible to use Powershell to delete an object from WMI.

Specifically one of two AntivirusProducts under root\securitycenter2
The AntivirusProduct has a uniqe Guid

Any examples would be appreciated

get-wmiobject win32_printer | where name -eq printername | remove-wmiobject

Although I think this is a bad idea, and I did NOT test this, it should work. Just change the InstanceID

Get-WmiObject -ClassName ‘AntivirusProduct’ -NameSpace ‘root\securityCenter2’ | Where-Object {$_.instanceGuid -Match ‘{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}’} | Remove-WmiObject

If it’s an msi provider, uninstall package should work.

get-package *antivirus* | uninstall-package