'Powershell - Delete Registry Key - Wildcard in RegPath

I want to delete the following registry key:

$regpath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe*"

The problem is that I have to use a wildcard. So I cannot use:

Remove-Item -Path $regpath 

And I cannot use Remove-ItemProperty as "Adobe*" is a subkey and not a value.

Do you have any ideas?

THANKS in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source