Views:

Applies to Product - Power Platform Administration

What’s happening?
Failed to delete a model-driven app with Power Platform Admin role.
 

Reason:
The first issue was due to missing privileges. The second issue was due to a known issue where a system administrator may encounter an error when attempting to delete an unpublished model-driven app. The error message received was: "Statement conflicted with a constraint. The DELETE statement conflicted with the REFERENCE constraint 'appmodule_appsetting_parentappmoduleid'."
 

Resolution:

  1. Ensure that the user has been added as a system administrator in the default environment.
  2. If the app is unpublished, publish the app before attempting to delete it.