This is the Trace Id: a28bcfb731e41047a06888c6ddee0726
Skip to main content Microsoft 365 Office Azure Copilot Windows XBOX Support Windows Apps OneDrive Outlook Moving from Skype to Teams OneNote Microsoft Teams Shop XBOX Accessories XBOX games Microsoft AI Microsoft Security Azure Dynamics 365 Microsoft 365 for business Microsoft Power Platform Windows 365 Digital Sovereignty Microsoft Developer Microsoft Learn Support for AI marketplace apps Microsoft Tech Community Microsoft Marketplace Software companies Visual Studio Free downloads & security Education Gift cards Licensing View Sitemap

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.