Trace Id is missing

Maximize the everyday with Microsoft 365

Get online protection, secure cloud storage, and innovative apps designed to fit your needs—all in one plan.
A young woman works on a Surface laptop while Microsoft 365 App icons whirl around her head.

Windows PowerShell script to delete all on-premises metadata from the Office 365 search index

Download this Windows PowerShell script to delete on-premises metadata from the Office 365 search index.

Important! Selecting a language below will dynamically change the complete page content to that language.

Download
  • Version:

    October2020

    Date Published:

    11/12/2020

    File Name:

    Delete-CloudHybridSearchContent.zip

    File Size:

    1.6 KB

    In a cloud hybrid search solution, the cloud Search service application crawls your on-premises content and pushes the metadata to the Office 365 search index. We recommend that you test the cloud hybrid search solution with a small content source first. After the test, you may want to delete the metadata for all the on-premises test items from the search index in Office 365. If the deletion fails, there might be on-premises orphan items left in the search index in Office 365. To remove ALL on-premises items from the Office 365 index, run the Windows PowerShell script Delete-CloudHybridSearchContent.ps1.
  • Supported Operating Systems

    Windows Server 2012 R2, Windows Server 2008 R2

      The file is a zipped folder that contains a Windows PowerShell (ps1) file.
    1. Choose the Download button on this page to start the download. Or, select a different language from the drop-down list, and then Choose Go.
    2. Copy the download to your computer, choose Save or Save this program to disk.

Follow Microsoft