Why does Entra connect sync stop after a bulk active directory cleanup ?

Evelynn 20 Reputation points
2026-09-11T08:26:53.7066667+00:00

Good day

I'm trying to clean up a large number of old accounts and objects from our local Active Directory.

After removing them in bulk, Entra Connect Sync stops and says the "Prevent Accidental Deletes" threshold has been reached.

I understand this is supposed to protect against deleting too many objects by mistake, but these deletions were intentional. Is there a way to approve the deletions and temporarily bypass or increase the threshold using PowerShell ?

I want to make sure the approved changes can sync successfully without having to recreate the deleted objects.

Windows for business | Windows 365 Business
0 comments No comments

1 answer

Sort by: Most helpful
  1. HLBui 11,575 Reputation points Independent Advisor
    2026-09-11T09:27:10.2733333+00:00

    Hello Evelynn

    I think you may ran into the classic PreventAccidentalDeletes safeguard in Entra Connect. It’s doing its job, but I get that it’s frustrating when the cleanup is intentional. You can temporarily raise or bypass that threshold using PowerShell: run Set-ADSyncExportDeletionThreshold -DeletionThreshold 0 to disable it, then kick off a manual sync with Start-ADSyncSyncCycle -PolicyType Delta. Once the deletions are processed, re‑enable protection with a reasonable threshold like Set-ADSyncExportDeletionThreshold -DeletionThreshold 500.

    Just make sure you’ve reviewed the pending exports in Synchronization Service Manager before approving that’s your safety net. After the sync completes, everything should flow normally again without recreating deleted objects. If this helps, please hit “Accept Answer” so others know it worked for you and let me know if you need any assistance. Thank you!

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.