This is the Trace Id: 2ed2a3b901c5705a743d01efcccc2864

Bring the world closer with Bing Wallpaper

Download the free app and enjoy breathtaking views with a new background each day.
A laptop displaying a colorful seascape from Bing Wallpaper.

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:

    7/15/2024

    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