CmdID / PowerShell / Cmdlets / Uninstall
Uninstall-ProvisioningPackage
Uninstalls .PPKG package from the local machine. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-AllInstalledPackages, -AllRemoves all installed packages.-ConnectedDevice, -DeviceIf enabled, specifies that the device type is mobile.-LogsDirectoryPath, -LogsSpecifies the logs directory path.-PackageId, -IdSpecifies the ID of a package.-PackagePath, -PathSpecifies the package path.-RuntimeMetadataSpecifies a runtime provisioning package metadata object.-WprpFile, -WprpSpecifies the location of the WPR profile file.