Option 1: Use the Microsoft Purview audit portal
This is the easiest method for most admins.
-
Sign in to Microsoft 365
- Go to the Microsoft Purview portal:
https://purview.microsoft.com
- Go to the Microsoft Purview portal:
-
Open Audit
- In the left menu, go to Solutions > Audit.
- If prompted, enable auditing if it isn’t already on.
- In the left menu, go to Solutions > Audit.
-
Start a new search
- Select New Search.
-
Set the date range
- Choose the period when you think the file was deleted.
- Be aware that audit retention depends on licensing:
- Many non-E5 tenants keep audit data for 180 days
- E5 and some add-on licenses can retain some audit data for 1 year by default citehttps://learn.microsoft.com/purview/audit-search#before-you-search-the-audit-log
- Choose the period when you think the file was deleted.
-
Choose activities
- In the activity filter, look for SharePoint file deletion-related actions such as:
- Deleted file (
FileDeleted)
- Recycled a file (
FileRecycled)
- Deleted file from recycle bin (
FileDeletedFirstStageRecycleBin)
- Deleted file from second-stage recycle bin (
FileDeletedSecondStageRecycleBin) citehttps://learn.microsoft.com/purview/audit-log-activities#file-and-page-activities
- Deleted file (
- In the activity filter, look for SharePoint file deletion-related actions such as:
-
Filter by site, file, or user
- Use available filters to narrow results:
- Site URL
- File name
- User
- If you know the person who deleted the file, filtering by user makes results much easier to review.
- Use available filters to narrow results:
-
Run the search
- Click Search.
-
Review the results
- Open matching events to see details such as:
- who performed the action
- when it happened
- the file involved
- the site URL
- the operation type
- who performed the action
- Open matching events to see details such as:
-
Check the event sequence
- A typical deletion trail may look like this:
- FileRecycled = file moved to recycle bin
- FileDeletedFirstStageRecycleBin = removed from first-stage recycle bin
- FileDeletedSecondStageRecycleBin = permanently removed from second-stage recycle bin citehttps://learn.microsoft.com/purview/audit-log-activities#file-and-page-activities
- FileRecycled = file moved to recycle bin
- A typical deletion trail may look like this:
What the log entries mean
For SharePoint deleted files, these are the most useful audit events:
-
FileDeleted
A user deleted a document from a site. citehttps://learn.microsoft.com/purview/audit-log-activities#file-and-page-activities -
FileRecycled
A user moved a file into the SharePoint recycle bin. citehttps://learn.microsoft.com/purview/audit-log-activities#file-and-page-activities -
FileDeletedFirstStageRecycleBin
A user deleted a file from the site’s recycle bin. citehttps://learn.microsoft.com/purview/audit-log-activities#file-and-page-activities -
FileDeletedSecondStageRecycleBin
A user deleted a file from the second-stage recycle bin. citehttps://learn.microsoft.com/purview/audit-log-activities#file-and-page-activities
That sequence helps you determine whether the file is still recoverable or has been permanently removed.
Practical tip for small businesses
If you are only trying to answer:
- Who deleted the file?
- When was it deleted?
- Was it permanently deleted or just moved to the recycle bin?
Then the audit search with the filters:
- date range
- user
- file name
- SharePoint activities
is usually enough.
If you are trying to restore the file as well, you should also check:
- the site recycle bin
- the second-stage recycle bin
because the audit log tells you what happened, but recovery depends on whether the file is still retained in one of those recycle bins.
Option 2: Use PowerShell for more detailed searches
If you prefer scripting or want to export results, Microsoft also supports using the Search-UnifiedAuditLog cmdlet in Exchange Online PowerShell to search and export audit records. citehttps://learn.microsoft.com/purview/audit-log-export-records#use-powershell-to-search-and-export-audit-log-records
High-level process:
- Connect to Exchange Online PowerShell.
- Run Search-UnifiedAuditLog for the date range.
- Search SharePoint-related audit records.
- Export the results to CSV for filtering and reporting. citehttps://learn.microsoft.com/purview/audit-log-export-records#use-powershell-to-search-and-export-audit-log-records
This is especially useful if:
- you need a report,
- you want to search a large range of data,
- or you want to automate the process.
Things to check if you can’t find the log
If no results appear, check these common causes:
-
Wrong date range
- Expand the time window.
-
Audit retention expired
- Older events may no longer be available depending on license. citehttps://learn.microsoft.com/purview/audit-search#before-you-search-the-audit-log
-
Wrong activity selected
- Try both:
- deleted
- recycled
- recycle bin deletion events
- deleted
- Try both:
-
Auditing not enabled
- In most tenants this is on, but if it was disabled previously, older activity may not exist. Microsoft notes audit log ingestion can be turned on or off. citehttps://learn.microsoft.com/purview/audit-search#before-you-search-the-audit-log
-
Looking in SharePoint site settings instead of Purview
- File deletion history is generally tracked in the Microsoft 365 unified audit log, not as a simple “deletion report” inside the SharePoint site itself.
Simple example
If a user says, “The file Budget.xlsx disappeared from the Finance SharePoint site,” you would:
- Open Purview Audit
- Search the last 7–30 days
- Filter activities to:
- FileDeleted
- FileRecycled
- FileDeletedFirstStageRecycleBin
- FileDeletedSecondStageRecycleBin
- FileDeleted
- Filter by:
- Site URL = Finance site
- File name = Budget.xlsx
- Site URL = Finance site
- Review who deleted it and whether it is still recoverable