The following error is displayed and cannot be deleted.
Failed to delete model-driven app. Principal user (Id=7af90a22-1d72-ea11-a811-000d3a5540ae, type=8, roleCount=2, privilegeCount=616, accessMode=0), is missing prvDeleteAppModule privilege (Id=af523536-9728-4164-9a2d-fbaf85a679d2) on OTC=9006 for entity 'appmodule'. context.Caller=7af90a22-1d72-ea11-a811-000d3a5540ae
It seems that the Action Approval Model of the solution is related, but I don't know what to do after this.
You cannot directly edit the components within a managed solution. If the managed properties for solution components are set to allow customization, you can edit them from another unmanaged solution.
Hi v-yutliu-msft,
Thank you for your confirmation.
You will see this error.
I don't know how to check after this.
Please let me know if you need further information.
regards,
KOU
Hi @KOU_813 ,
Do you mean that you could not delete a model-driven app in managed solution?
1)Please check your permission of the environment that the model-driven app belongs to.
The reason is model-driven apps are actually owned by the organization, not an individual user.
If your environment permission is not enough, you could ask global admin to assign you enough permission.
2)To delete a model-driven app that was installed in the default solution as part of a managed solution, delete the managed solution.
Don’t directly delete an app or app’s site map from the default environment that was installed as part of a managed solution. Doing so can lead to failure of a solution upgrade or solution updates for the solution used to install the app.
You could delete your solution in this way:
Here's a doc about this for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/delete-model-driven-app
Best regards,
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473