Forum Discussion
Pooya Obbohat
Dec 07, 2017Steel Contributor
Can't remove Flow from OneDrive & SP libraries
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?
- Jan 08, 2018
Thanks Paul.
I just read https://techcommunity.microsoft.com/t5/SharePoint/PowerApps-and-Flow-buttons-are-graduating-out-of-preview/m-p/121526#M10803 where Kerem Yuceturk extensively talks about the reasoning behind having the flow and powerapps menu items.
Steve Hughes
Aug 08, 2018Copper Contributor
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();
dcober
May 24, 2019Brass Contributor
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.