CmdID / PowerShell / Cmdlets / Remove
Remove-AppxPackage
Removes an app package from one or more user accounts. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-AllUsersThis parameter removes the app package for all user accounts on the computer.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-PackageSpecifies an AppxPackage object or the full name of a package.-WhatIf, -wiShows what would happen if the cmdlet runs.-PreserveApplicationDataSpecifies that the cmdlet preserves the application data during the package removal.-PreserveRoamableApplicationDataPreserves the roamable portion of the app's data when the package is removed.-UserIf you specify this parameter, the cmdlet removes the app package for only the user that this cmdlet specifies.