# How to Remove OneDrive from Microsoft Teams

Source: https://help.sendent.com/sendent-nextcloud-workspace/nextcloud-for-ms-teams/how-to-remove-onedrive-from-microsoft-teams

***🚀 Replace OneDrive in Microsoft Teams** — Regain Your Digital Sovereignty and Manage Files Natively with Nextcloud via Sendent ([learn more here](https://sendent.com/sendent-for-ms-teams/)).*

In order to disable the OneDrive integration for Microsoft Teams, you must install first the [Microsoft Teams Powershell extension](https://learn.microsoft.com/en-us/microsoftteams/teams-powershell-install).

*Reference article: <https://learn.microsoft.com/en-us/microsoftteams/turn-off-teams-native-file-upload-policy>*

**Notice:** It may take up to 12-hours in order for the changes to take effect in the Microsoft Teams clients.

#### 1. Login with your administrator Azure Account in Powershell

Using powershell, execute the following command: `az login`

*More details can be found here: <https://learn.microsoft.com/en-us/cli/azure/reference-index?view=azure-cli-latest#az-login>*

#### 2. Turn-off for Entire Tenant

The following command will disable the OneDrive file-upload means

`Set-CsTeamsFilesPolicy -Identity Global -NativeFileEntryPoints Disabled`

#### 3. Remove OneDrive button in Microsoft Teams

Now login as a administrator at <https://admin.teams.microsoft.com/>.

1\. On the left side in the menu bar, navigate to 'Teams Apps' &gt; 'Setup Policies'.

![](https://cdn.eniston.com/bases/0f220f4b-6749-49a9-8420-4a32e6d205f7/attachments/mceclip1_1723196160.png)Administrator teams menu

2\. In the following list of policies select 'Global (Org-wide default)'.

![](https://cdn.eniston.com/bases/0f220f4b-6749-49a9-8420-4a32e6d205f7/attachments/mceclip2_1723196239.png)

Overview Policies

3\. From there, under pinned apps, select 'OneDrive' (1) and click Remove (2).

![](https://cdn.eniston.com/bases/0f220f4b-6749-49a9-8420-4a32e6d205f7/attachments/mceclip0_1723196108.png)

Remove OneDrive

4\. Now Click 'Save' in order to Save the policy.

![](https://cdn.eniston.com/bases/0f220f4b-6749-49a9-8420-4a32e6d205f7/attachments/mceclip4_1723196435.png)Save Policy

#### Undo the disabling of OneDrive

With the following powershell command you can undo the file upload policy (OneDrive will be enabled again).

`Remove-CsTeamsFilesPolicy -Identity Global`

Then as an administrator, login into your Microsoft Teams admin center.

`Teams Apps > Setup Policies > Global (Org-wide default). `

And click 'add apps' and search for the OneDrive. Make sure to Save the policy.

![](https://cdn.eniston.com/bases/0f220f4b-6749-49a9-8420-4a32e6d205f7/attachments/mceclip3_1723196371.png)

Add apps
