Overview

Remove Cloud Sync from a tenant

Use this guide to stop syncing AD to a tenant and remove everything sync put there: when you move a school to a new tenant, or retire a test setup. Your AD accounts stay as they are.

5 minute readChanges the old tenant for goodReviewed 15 November 2026
What improves

A tenant is left clean, with nothing sync created.

Why it matters

Leftover synced accounts cannot be edited and will clash if you sync again.

How you do it

Back up, scope users out, turn off directory sync, purge the accounts and remove the agents and domain.

Every name, address and value in this guide is an example. Replace them with your own.

What this guide removes

FromRemovedKept
The old tenantSynced users, the sync configuration, its service account and the old sign-in domainCloud-only accounts, such as your admins
The sync serversThe agent registered to the old tenantThe servers and the gMSA
Active DirectoryThe old UPN suffix, once no account uses itEvery user, group and password

Two routes

  1. Scope the users out

    Point sync at an empty OU, and the next cycle deletes the users. Try this first.

  2. Turn off directory sync

    If the cycle runs but deletes nobody, switch off sync for the tenant. The users turn into cloud accounts you can delete. You may need this route.

The route

  1. Take an inventory and a backup
  2. Scope the users out
  3. If they stay, turn off directory sync
  4. Delete and purge the users
  5. Remove the agents and leftovers
  6. Remove the old domain
Deleting and purging cannot be undone

Once purged, the old cloud accounts and their mailboxes, OneDrive files and Teams chats are gone. Move anything you need first.

Your progress is kept in this browser only.