![How to Use PowerShell to Remove OneDrive Files Found by a Content Search](https://s40823.pcdn.co/wp-content/uploads/2021/05/057-03-22-2021-BLOG-OneDrive-Content-Search-and-Powershell-LOW-300x162.jpg)
How to Use PowerShell to Remove OneDrive Files Found by a Content Search
Ever wondered how to perform selective deletion of OneDrive documents found in Content Searches? While you can remove email using a content search action, Office 365 doesn’t include a method to cleanup OneDrive documents found by content searches. This article demonstrates how to use PowerShell to view the set of files, and then select files to remove.