Skip to main content

How to Remove the Unmanaged Layer from a Managed Component in Power Apps

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

To undo every change made to a managed flow, app or table in an environment, delete its unmanaged layer. Remove active customizations on the solution layers page does it in one step, and the component goes back to exactly what the managed solution installed.

Changes made in an environment to a component from a managed solution are kept in an unmanaged layer on top of it, and that layer wins. Microsoft's solution layers article: "In most situations you don't want unmanaged customizations determining the behavior of your components in your test and production environments." It also warns, before the steps: "Removing active unmanaged customizations can't be reversed or undone. All data associated with the unmanaged customization can be lost."

The example is a flow called Say Hello, installed with the managed solution How-to Examples. In its new environment, its Compose step was changed from Hello to Hello from this environment (How to Edit a Cloud Flow in a Managed Solution in Power Automate). Removing the layer takes it back to Hello.

Step 1: Open the Component's Solution Layers​

Open a solution that lists the component, select ⋮ next to it, then Advanced → See solution layers (How to See a Component's Solution Layers in Power Apps). Say Hello had two layers: Unmanaged layer on top, Active, and HowtoExamples below it.

Step 2: Select the Unmanaged Layer and Remove It​

Select the Unmanaged layer row. Its Properties pane opens, and the command bar shows Remove active customizations. Leave the pane open: closing it clears the selection, and the command with it.

Select Remove active customizations. A dialog names the component and says what will happen:

The Delete unmanaged layer? dialog: Deleting this layer will delete all unmanaged customizations for Say Hello Workflow and revert back to the managed state, with Delete and Cancel buttons

Check the name in the dialog, here Say Hello Workflow, and select Delete.

Step 3: Wait, Then Reload​

No message appeared, and twelve seconds later the page still listed both layers. After waiting a little longer and reloading the page, only the managed layer was left:

The Solution Layers page for Say Hello after the removal: only Order 1, HowtoExamples, Publisher Dewiride

Step 4: Check the Customized Column​

Go back to the solution's list of objects. The flow says Customized No again, and it stayed On:

Say Hello in the solution's object list: Cloud Flow, Managed Yes, Customized No, Last Modified 41 seconds ago, Owner Admin User, Status On

Step 5: Check the Component Itself​

Open the flow with ⋮ → Edit. Compose holds Hello again, the managed version:

The Compose step of Say Hello with Inputs Hello

The designer's yellow bar was back to Editing this managed flow will create customizations stored in a new unmanaged layer, the same as before the first change. I left with the back arrow without saving, so nothing was changed.

Common Mistakes​

MistakeWhat happensDo this instead
Removing a layer you still needEvery change in it is gone, and it can't be undoneNote the values you want to keep before you remove it
Closing the Properties pane before selecting the commandThe selection clears and the command disappearsKeep the pane open, or select the layer again
Expecting a message when it's doneNothing appearedReload the layers page after a short wait
Saving the flow while checking itA new unmanaged layer is madeLeave the designer without saving

Troubleshooting​

SymptomLikely causeFix
Both layers still listed after DeleteThe page hadn't refreshedWait a little, then reload
No Remove active customizationsNo layer is selected, or the component has only its unmanaged layerSelect the Unmanaged layer row; a component made in this environment is removed by deleting it instead
The component still behaves the old wayAnother managed layer above the one you expectedRead the layers again from the top

FAQ​

What does the removal delete?​

Only the unmanaged layer: every unmanaged change to this one component. The managed solution and its other components stay as they are.

Can I remove the layer from the designer instead?​

When a flow already has an unmanaged layer, its designer's yellow bar says the changes go into the existing active unmanaged layer and shows a Remove unmanaged layer button. I used the solution layers page, which shows the result.

What if I want to keep one change?​

Removal takes all the layer's changes at once. Make a note of the change, remove the layer, and make it again, which creates a new layer with only that change.

Conclusion​

Open the component's solution layers, select Unmanaged layer, choose Remove active customizations and confirm Delete. After a reload, only the managed layers are left, Customized says No, and the component behaves as the managed solution installed it.

Additional Resources​