Remove-MailboxExportRequest
Remove fully or partially completed export requests. You can create multiple export requests for a specified mailbox provided that you specify a distinct name. Completed export requests aren't cleared automatically; they need to be removed by using this cmdlet. To use this cmdlet, you need to add the Mailbox Import Export role to a role group (for example, to the Organization Management role group). For more information, see Add a role to a role group. When a partially completed export request is removed, content already exported isn't removed from the PST file. If you want to start a new expo
Quick start script
# Remove-MailboxExportRequest — 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-MailboxExportRequest
$before | Format-List
# 3. Make the change (dry run first)
Remove-MailboxExportRequest -Identity <MailboxExportRequestIdParameter> -RequestGuid <Guid> -RequestQueue <DatabaseIdParameter> -WhatIf
Remove-MailboxExportRequest -Identity <MailboxExportRequestIdParameter> -RequestGuid <Guid> -RequestQueue <DatabaseIdParameter>
# 4. Verify and diff
$after = Get-MailboxExportRequest
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 2 parameter sets
Identity
Remove-MailboxExportRequest [-Identity] <MailboxExportRequestIdParameter>
[-Force]
[-Confirm]
[-DomainController <Fqdn>]
[-WhatIf]
[<CommonParameters>]
MigrationRequestQueue
Remove-MailboxExportRequest -RequestGuid <Guid> -RequestQueue <DatabaseIdParameter>
[-Confirm]
[-DomainController <Fqdn>]
[-WhatIf]
[<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.