Commands › Exchange Online

Remove-QuarantinePolicy

Exchange Online ExchangeOnlineManagement Remove-*

Remove quarantine policies from your cloud-based organization.

Quick start script

# Remove-QuarantinePolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-QuarantinePolicy
$before | Format-List

# 3. Make the change
Remove-QuarantinePolicy -Identity <QuarantineTagIdParameter>

# 4. Verify and diff
$after = Get-QuarantinePolicy
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Remove-QuarantinePolicy [-Identity] <QuarantineTagIdParameter>
 [-DomainController <Fqdn>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity QuarantineTagIdParameter yes The Identity parameter specifies the quarantine policy you want to remove. You can use any value that uniquely identifies the quarantine policy. For example:
-DomainController Fqdn This parameter is reserved for internal Microsoft use.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.