SOLVED

Can't remove Flow from OneDrive & SP libraries

%3CLINGO-SUB%20id%3D%22lingo-sub-135041%22%20slang%3D%22en-US%22%3ECan't%20remove%20Flow%20from%20OneDrive%20%26amp%3B%20SP%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-135041%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%26nbsp%3Bturned%20off%20the%20licenses%20for%20Flow%2C%20but%20the%20button%20is%20still%20there%20in%20OneDrive%20and%20other%20SharePoint%20libraries.%20Any%20idea%20how%20we%20can%20remove%20the%20flow%20button%20from%20our%20environment%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-135041%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225847%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20remove%20Flow%20from%20OneDrive%20%26amp%3B%20SP%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225847%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20actually%20accomplish%20by%20using%20PowerShell%20with%20the%20PnPOnline%20module%3A%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%3CFONT%20face%3D%22Courier%20New%22%20size%3D%223%22%3EInstall-Module%20SharePointPnPPowerShellOnline%3C%2FFONT%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3EConnect-PnPOnline%20%E2%80%93Url%20%3CURL%3E%20%E2%80%93Credentials%20(Get-Credential)%3C%2FURL%3E%3C%2FP%3E%3CP%3E%24ctx%20%3D%20Get-PnPContext%3C%2FP%3E%3CP%3E%24ctx.Site.DisableFlows%20%3D%20%24true%3B%3C%2FP%3E%3CP%3E%24ctx.ExecuteQuery()%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-142925%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20remove%20Flow%20from%20OneDrive%20%26amp%3B%20SP%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-142925%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Paul.%3C%2FP%3E%0A%3CP%3EI%20just%20read%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSharePoint%2FPowerApps-and-Flow-buttons-are-graduating-out-of-preview%2Fm-p%2F121526%23M10803%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSharePoint%2FPowerApps-and-Flow-buttons-are-graduating-out-of-preview%2Fm-p%2F121526%23M10803%3C%2FA%3E%26nbsp%3B%20where%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F175%22%20target%3D%22_blank%22%3E%40Kerem%20Yuceturk%3C%2FA%3E%26nbsp%3Bextensively%20talks%20about%20the%26nbsp%3Breasoning%20behind%20having%20the%20flow%20and%20powerapps%20menu%20items.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%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-142924%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20remove%20Flow%20from%20OneDrive%20%26amp%3B%20SP%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-142924%22%20slang%3D%22en-US%22%3EWe%20are%20talking%20here%20about%20the%20ability%20to%20hide%20Flow%20buttons%20%3A-)...and%20to%20my%20knowledge%2C%20there%20is%20not%20such%20a%20way%20for%20ODFB%20and%20for%20SPO%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-142920%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20remove%20Flow%20from%20OneDrive%20%26amp%3B%20SP%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-142920%22%20slang%3D%22en-US%22%3E%3CP%3EFLow%20is%20delivered%20directly%20from%20Office%20365%20and%20does%20not%20require%20extra%20license%20unless%20you%20want%20to%20use%20Flow%20a%20whole%20lot%20then%20you%20need%20a%20license.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESo%20basicly%20it%20is%20out%20of%20the%20box%20functionality%20which%20cannot%20be%20disabled%20at%20this%20point.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-142917%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20remove%20Flow%20from%20OneDrive%20%26amp%3B%20SP%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-142917%22%20slang%3D%22en-US%22%3E%3CP%3EEy%20Gilbert%2C%20no%20to%20my%20knowledge%20but%20let's%20see%26nbsp%3Bif%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3E%26nbsp%3Bcan%20say%20something%20here%20(ODFB%20part)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-142896%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20remove%20Flow%20from%20OneDrive%20%26amp%3B%20SP%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-142896%22%20slang%3D%22en-US%22%3E%3CP%3EJuan%2C%3C%2FP%3E%0A%3CP%3Eis%20there%20a%20solution%20to%20this%3F%26nbsp%3B%20How%20to%20hide%20the%20flow%20button%20in%20document%20libraries%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-135092%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20remove%20Flow%20from%20OneDrive%20%26amp%3B%20SP%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-135092%22%20slang%3D%22en-US%22%3E%3CP%3EI%20think%20it's%20not%20enough%20to%20remove%20Flow%20licenses%20in%20order%20to%20hide%20Flow%20button%20from%20ODFB%20and%20SPO%20document%20libraries....adding%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F98%22%20target%3D%22_blank%22%3E%40Chris%20McNulty%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-645224%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20remove%20Flow%20from%20OneDrive%20%26amp%3B%20SP%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-645224%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F172673%22%20target%3D%22_blank%22%3E%40Steve%20Hughes%3C%2FA%3E%26nbsp%3B%20This%20works%20for%20OneDrive%20but%20with%20some%20caveats.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20It%20must%20be%20run%20against%20every%20OneDrive%20site%3C%2FP%3E%3CP%3E-%20The%20account%20running%20the%20script%20must%20first%20be%20added%20as%20a%20site%20collection%20admin%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20would%20be%20much%20nicer%20if%20there%20was%20a%20tenant-level%20checkbox%20in%20the%20OneDrive%20admin%20center.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

We have turned off the licenses for Flow, but the button is still there in OneDrive and other SharePoint libraries. Any idea how we can remove the flow button from our environment? 

8 Replies

I think it's not enough to remove Flow licenses in order to hide Flow button from ODFB and SPO document libraries....adding here @Chris McNulty

Juan,

is there a solution to this?  How to hide the flow button in document libraries?

Ey Gilbert, no to my knowledge but let's see if @Stephen Rice can say something here (ODFB part)

FLow is delivered directly from Office 365 and does not require extra license unless you want to use Flow a whole lot then you need a license.

 

So basicly it is out of the box functionality which cannot be disabled at this point.

 

We are talking here about the ability to hide Flow buttons :-)...and to my knowledge, there is not such a way for ODFB and for SPO
best response confirmed by Pooya Obbohat (Regular Contributor)
Solution

Thanks Paul.

I just read https://techcommunity.microsoft.com/t5/SharePoint/PowerApps-and-Flow-buttons-are-graduating-out-of-p...  where @Kerem Yuceturk extensively talks about the reasoning behind having the flow and powerapps menu items.

 

 

 

 

You can actually accomplish by using PowerShell with the PnPOnline module:

 Install-Module SharePointPnPPowerShellOnline

Connect-PnPOnline –Url <URL> –Credentials (Get-Credential)

$ctx = Get-PnPContext

$ctx.Site.DisableFlows = $true;

$ctx.ExecuteQuery();

 

@Steve Hughes  This works for OneDrive but with some caveats.

 

- It must be run against every OneDrive site

- The account running the script must first be added as a site collection admin

 

It would be much nicer if there was a tenant-level checkbox in the OneDrive admin center.