'C# - PowerShell object execute Remove-AppxPackage successfully but unable to remove application from another user

I want to remove the application from another user account (Specific selected user) I used below query Remove-AppxPackage -Package FACEBOOK.FACEBOOK_2021.927.1.0_neutral__8xx8rvfyw5nnt -User S-1-5-21-1982064058-2852822003-722279830-1009

Format Remove-AppxPackage -Package (PackageFullName) -User (User.SID)

above query work on login user but not working for other users



Solution 1:[1]

Have you tried the '-Force' option?

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 user19181730