User is able to create a Flow in a deleted environment

%3CLINGO-SUB%20id%3D%22lingo-sub-145203%22%20slang%3D%22en-US%22%3EUser%20is%20able%20to%20create%20a%20Flow%20in%20a%20deleted%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145203%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20tested%20the%20following%3A%20created%20an%20environment%20with%20the%20global%20admin%20account%20and%20clicked%20on%20%22add%20everyone%20in%20my%20org%22%20to%20make%20all%20users%20admin%20of%20the%20environment.%20Signed%20in%20with%20a%20normal%20account%20and%20created%20a%20Flow%20in%20this%20environment.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDeleted%20the%20environment%20with%20the%20account%20I%20used%20to%20create%20it.%20This%20takes%20around%2010%20seconds.%20The%20Flow%20created%20with%20the%20other%20account%20was%20also%20deleted%20(was%20hoping%20for%20a%20notification%2C%20the%20Flow%20being%20moved%20to%20the%20default%20environment%20etc.%2C%20but%20that's%20not%20the%20case.%20The%20Flow%20is%20gone.).%20While%20the%20environment%20was%20being%20deleted%2C%20I%20was%20able%20to%20create%26nbsp%3Banother%20Flow%26nbsp%3Bin%20the%20same%20environment.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20environment%20is%20gone.%20The%20admin%20account%20can't%20see%20it%2C%26nbsp%3B%20but%20the%20environment%20does%20exist.%20The%20normal%20account%20can%20create%20Flows%20in%20the%20environment%20and%20they%20work.%20The%20normal%20account%20also%20doesn't%20see%20the%20environment%20in%20the%20Flow%20admin%20center%2C%20but%20it's%20available%20in%20the%20menu%20in%20the%20top%20right%20corner.%20Don't%20have%20the%20option%20to%20make%20changes%20to%20the%20environment%20or%20delete%20it.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-145203%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-147424%22%20slang%3D%22en-US%22%3ERe%3A%20User%20is%20able%20to%20create%20a%20Flow%20in%20a%20deleted%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-147424%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20got%20a%20call%20from%20support%20with%20an%20update%20on%20this.%20They%20are%20working%20on%20a%20fix.%20This%20is%20caused%20by%20caching%20and%20the%20environment%20and%20Flow%20should%20be%20deleted%20eventually.%20Just%20checked%20and%20can%20confirm%20that%20they%20have%20now%20been%20deleted.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145370%22%20slang%3D%22en-US%22%3ERe%3A%20User%20is%20able%20to%20create%20a%20Flow%20in%20a%20deleted%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145370%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20checked.%20The%20SPO%20Site%20Collections%20Recycle%20bin%20is%20empty.%20My%20assumption%20was%20that%20the%20only%20way%20to%20manage%20environments%20is%20by%20navigating%20to%20admin.flow.microsoft.com.%20Have%20created%20a%20ticket%20for%20this.%20Will%20update%20thread%20when%20I%20have%20new%20information.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145367%22%20slang%3D%22en-US%22%3ERe%3A%20User%20is%20able%20to%20create%20a%20Flow%20in%20a%20deleted%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145367%22%20slang%3D%22en-US%22%3EI%20was%20referring%20to%20the%20SPO%20Site%20Collections%20Recycle%20bin%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145366%22%20slang%3D%22en-US%22%3ERe%3A%20User%20is%20able%20to%20create%20a%20Flow%20in%20a%20deleted%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145366%22%20slang%3D%22en-US%22%3E%3CP%3EDon't%20think%20there%20is%20a%20recycle%20bin%20for%20Flow%20environments%2C%20at%20least%20not%20that%20I%20know%20of.%20The%20only%202%20places%20where%20I%20can%20see%20environments%20is%20in%20the%20top%20right%20corner%20at%20flow.microsoft.com%20(clicking%20on%20your%20username%20allows%20you%20to%20select%20the%20environment%20where%20you%20want%20to%20create%20a%20Flow)%20and%20at%20admin.flow.microsoft.com.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20trick%20allows%20users%20to%20create%20an%20environment%20for%20Flows%20which%20is%20hidden%20from%20the%20tenant%2FFlow%20admin.%20Don't%20think%20this%20will%20happen%20accidentally%20as%20the%20second%20user%20has%20to%20create%20a%20Flow%20in%20the%20environment%20while%20it%20is%20being%20deleted%20by%20the%20user%20that%20created%20the%20environment.%20The%20only%20way%20to%20delete%20the%20environment%20now%20is%20by%20reaching%20out%20to%20Microsoft%20support%20as%20nobody%20can%20see%20the%20environment%20at%20admin.flow.microsoft.com.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145257%22%20slang%3D%22en-US%22%3ERe%3A%20User%20is%20able%20to%20create%20a%20Flow%20in%20a%20deleted%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145257%22%20slang%3D%22en-US%22%3EHave%20you%20tried%20to%20see%20what%20happens%20if%20you%20removed%20the%20deleted%20site%20from%20the%20recycle%20bin%3F%3C%2FLINGO-BODY%3E
Regular Contributor

I have tested the following: created an environment with the global admin account and clicked on "add everyone in my org" to make all users admin of the environment. Signed in with a normal account and created a Flow in this environment. 

 

Deleted the environment with the account I used to create it. This takes around 10 seconds. The Flow created with the other account was also deleted (was hoping for a notification, the Flow being moved to the default environment etc., but that's not the case. The Flow is gone.). While the environment was being deleted, I was able to create another Flow in the same environment. 

 

The environment is gone. The admin account can't see it,  but the environment does exist. The normal account can create Flows in the environment and they work. The normal account also doesn't see the environment in the Flow admin center, but it's available in the menu in the top right corner. Don't have the option to make changes to the environment or delete it. 

 

5 Replies
Have you tried to see what happens if you removed the deleted site from the recycle bin?

Don't think there is a recycle bin for Flow environments, at least not that I know of. The only 2 places where I can see environments is in the top right corner at flow.microsoft.com (clicking on your username allows you to select the environment where you want to create a Flow) and at admin.flow.microsoft.com. 

 

This trick allows users to create an environment for Flows which is hidden from the tenant/Flow admin. Don't think this will happen accidentally as the second user has to create a Flow in the environment while it is being deleted by the user that created the environment. The only way to delete the environment now is by reaching out to Microsoft support as nobody can see the environment at admin.flow.microsoft.com. 

 

 

I was referring to the SPO Site Collections Recycle bin

Just checked. The SPO Site Collections Recycle bin is empty. My assumption was that the only way to manage environments is by navigating to admin.flow.microsoft.com. Have created a ticket for this. Will update thread when I have new information. 

Just got a call from support with an update on this. They are working on a fix. This is caused by caching and the environment and Flow should be deleted eventually. Just checked and can confirm that they have now been deleted.