본문으로 건너뛰기

Exchange Online 메일 검색과 삭제

EXCHANGE ONLINE INCIDENT OPERATION

Search, validate and purge risky mail with approval evidence

Message purge should be treated as a controlled incident response procedure because it can permanently remove content from user mailboxes.

FindQuery
CheckResult
ApproveOwner
PurgeReport

Executive Summary​

This guide describes how to search and purge incorrectly sent or risky email messages from Exchange Online mailboxes using Microsoft Purview compliance search and PowerShell.

This procedure should be treated as a controlled incident response operation because it can permanently delete messages from user mailboxes.


Business Scenario​

Organizations may need to remove messages when:

  • A confidential email was sent to the wrong recipients
  • A malicious message was delivered to multiple users
  • A phishing campaign bypassed initial controls
  • An internal mail was sent with incorrect attachment or content
  • Legal or compliance team requests controlled removal

Important Warning​

Message purge is a destructive operation.

Before execution:

  • Obtain approval from authorized owner
  • Confirm legal and compliance position
  • Validate search query carefully
  • Use a pilot search before purge
  • Document all actions

Process Overview​

Message purge control flowValidate before destructive action
01Incident reportedConfirm business owner, risk type, sender, recipients and message identifiers.
02Compliance searchDefine query, create search and validate matched items before purge.
03Approval gateObtain authorized approval because purge can permanently remove mailbox content.
04Purge and reportExecute controlled purge and document result, scope, timestamp and evidence.

Required Permissions​

A search permission does not itself grant permission to delete. Confirm the Compliance Search / eDiscovery search permissions and the separate Search And Purge role in Microsoft Purview. Exchange Administrator alone is not a substitute for the purge role. Role-group names and assigned permissions must be checked in the actual tenant.

Current connection requirements​

For interactive eDiscovery PowerShell, use ExchangeOnlineManagement 3.9.0 or later and a search-only session:

Import-Module ExchangeOnlineManagement
Connect-IPPSSession -UserPrincipalName '<authorized-admin-UPN>' -EnableSearchOnlySession

This example connects; it does not run a search or purge. App-only authentication for eDiscovery cmdlets in Security & Compliance PowerShell is unsupported. Existing certificate-based examples do not change that status. Use supported Microsoft Graph APIs for unattended automation where available, and check which operations the API covers. See eDiscovery app-only support status. See current connection requirements.

Choose the supported purge method​

Case and methodCurrent documented limit and boundary
Non-premium eDiscovery / PowerShellUp to 10 items per mailbox/location in a purge action; intended for incident response, not bulk mailbox cleanup
Premium-enabled case / Microsoft GraphUp to 100 items per location. Premium cases configured in Graph or the Purview portal require Graph for purge
Mixed methodsDo not combine PowerShell and Graph purge methods for the same process; follow the method supported by the case

Find and delete email in eDiscovery explains the case and method restrictions. A single completed action does not prove every matching item was removed. Review counts, scope, action results, unindexed items and remaining matches. Holds, retention and Recoverable Items affect final removal; HardDelete is not a promise of immediate physical erasure.


삭제 대상에서 빠지는 항목​

New-ComplianceSearchAction -Purge는 인덱싱되지 않은 항목과 Teams 메시지를 삭제하지 않습니다. 검색 결과에 포함됐다는 사실만으로 삭제 대상이라고 판단하지 마세요. Litigation Hold가 걸린 사서함은 이 검색·삭제 절차의 지원 대상이 아니며, 사용자 화면에서 10개 항목이 사라져도 영구 삭제된 것은 아닙니다. 보류와 보존 조건을 먼저 확인하고, 삭제 한도를 넘기려고 명령을 계속 반복하지 마세요. 삭제 지원 범위와 제한을 참고하세요.

Step 1. Define Search Criteria​

Search criteria may include:

CriteriaExample
SubjectSpecific mail subject
SenderSender email address
DateSent date
Recipient ScopeAll mailboxes or selected mailboxes
KeywordsUnique message content

Example structure:

New-ComplianceSearch `
-Name "Search-Message-Removal" `
-ExchangeLocation '<target-mailbox-address>' `
-ContentMatchQuery 'subject:"<subject>" AND from:"<sender>" AND sent:<YYYY-MM-DD>'

검색식과 사서함 범위

  • 보낸 사람은 from, 보낸 날짜는 sent로 지정합니다. 예제의 날짜를 실제 날짜로 바꾸세요. subject는 제목 전체가 정확히 같은 메일만 찾는 조건이 아닙니다. 검색 가능한 메일 속성
  • 삭제 작업에 사용할 검색은 최대 50,000개 사서함까지 포함할 수 있습니다. 일치하는 메일이 없는 사서함도 이 수에 들어갑니다. 예제의 사서함 자리를 실제 대상 주소로 바꾸세요.
  • 프리미엄 기능이 꺼진 사례에서는 메시지 ID 등 식별자, 민감도 레이블, 중요한 정보 유형을 삭제 조건으로 사용하지 마세요. Microsoft는 이러한 조건을 사용하면 의도하지 않은 메일까지 삭제될 수 있다고 안내합니다.

삭제 전 확인

  1. Purview에서 검색 결과를 보고서로 내보내 각 항목의 발신자, 제목, 날짜와 사서함을 확인합니다.
  2. 포털에서 검토한 검색도 PowerShell에서 다시 실행합니다. 검색이 끝나면 건수와 대상이 보고서와 일치하는지 확인한 뒤 삭제를 승인합니다. Microsoft의 검색·삭제 절차

Start-ComplianceSearch -Identity "Search-Message-Removal"

Check status:

Get-ComplianceSearch -Identity "Search-Message-Removal"

Proceed only after the search status is completed and results are validated.


Step 4. Purge Message​

Hard delete example:

New-ComplianceSearchAction `
-SearchName "Search-Message-Removal" `
-Purge `
-PurgeType HardDelete

Use HardDelete only when approved.


Validation​

Validate that:

  • Review action status, item counts and remaining matches; do not infer complete removal from action completion alone
  • Validate the expected mailbox visibility and Recoverable Items / hold / retention behavior
  • Recoverable Items behavior is understood
  • Search action completed successfully
  • Incident record is updated

Operational Controls​

ControlDescription
ApprovalLegal, compliance or security approval required
Query ReviewPeer review search query before purge
Pilot SearchValidate against small scope if possible
Audit RecordMaintain PowerShell command history and approval
CommunicationNotify stakeholders only as required

Risk and Mitigation​

RiskImpactMitigation
Wrong queryWrong messages deletedPeer review and test search
No approvalCompliance issueRequire written approval
User impactBusiness record removedValidate legal retention requirements
Delayed actionRisk message remains accessibleDefine incident SLA

  • Incident Request
  • Search Query Evidence
  • Approval Record
  • Purge Execution Log
  • Validation Result
  • Final Incident Summary

References​

한국어 요약​

Exchange Online에서 잘못 발송했거나 보안 사고와 관련된 메일을 검색하고 삭제할 때 확인할 절차입니다. 메시지 회수와 관리자 삭제는 서로 다른 작업입니다.

검색 조건과 대상, 승인 기록, 보존 정책과 법적 보류 여부를 확인하세요. 실제 삭제 전에 다른 담당자가 검색 결과를 검토하고 시험해야 합니다.

검색 키워드​

  • Exchange Online message purge
  • Microsoft Purview Compliance Search
  • Exchange Online message recall
  • New-ComplianceSearchAction
  • email incident response
  • Exchange Online 메일 삭제
  • Purview 콘텐츠 검색

문의·브리핑 요청​