Removing the Content Source
Using SharePoint Management Shell
- Open a new PowerShell window as an Administrator.
Run the RemoveContentSource.ps1 script
./RemoveContentSource.ps1 -ContentSource "MyContentSource" -Context "http://my-sp2013-central-admin:port" -IntermediateRepository "C:\IntermediateRepository -SearchAppName "My Search Service Application"
The account that will run this script has to be a Search Service Application administrator.
Manual uninstall
Remove the Content Source:
If the content source is currently crawling, the delete option will be disabled. Stop the crawl process or wait for it to finish to be able to delete it.
- Go to Central Administration and click on Manage Service Applications.
- Look for the Search Service Application and click on it.
- Go to Content Sources.
- Look for the content source you want to delete, right click it and select "Delete".
- Remove the BDC Model:
Go to Central Administration and click on Manage Service Applications.
Look for the Business Data Connectivity Service Application and click on it.
On the ribbon, go to the View section and select "BDC Models".
Right click on the BDC model you want to delete ({contentSourceName}-Model), right click it and select "Delete".
- Remove the Repository folder for the content source:
Go to the Intermediate Repository
Remove the folder with the same name as the content source.
A new Content Source and External Content Type with a name used previously will only be created if the folder has been removed from the Shared Repository directory.
Removing SharePoint 2013 Components
AspireBDCService
From SharePoint Management Shell run the powershell script RemoveAspireBDCService.ps1
.\RemoveAspireBDCService.ps1 -configurationFilePath ..\config\configurationParameters.xml
This will do the following:
- Remove the AspireBDCService site on IIS.
- Remove the AspireBDCService application pool on IIS.
- Remove the AspireBDCService folder under C:\inetpub\wwwroot
Notification Service
From SharePoint Management Shell run the powershell script RemoveNotificationService.ps1
.\RemoveNotificationService.ps1 -configurationFilePath ..\config\configurationParameters.xml
This will do the following:
- Retract aspirenotificationservice.wsp solution.
- Remove aspirenotificationservice.wsp solution.
Intermediate Repository
From SharePoint Management Shell run the powershell script RemoveIntermediateRepository.ps1
.\RemoveIntermediateRepository.ps1 -configurationFilePath ..\config\configurationParameters.xml
Error Crawl Logs Service
From SharePoint Management Shell run the powershell script RemoveErrorCrawlLogsService.ps1
.\RemoveErrorCrawlLogsService.ps1 -configurationFilePath ..\config\configurationParameters.xml
This will do the following:
- Retract errorCrawlLogsService.wsp solution.
- Remove errorCrawlLogsService.wsp solution.
Aspire Security Trimmer
From SharePoint Management Shell run the UninstallAspireSecurityTrimmer.ps1 script
.\UninstallAspireSecurityTrimmer.ps1 -configurationFilePath ..\config\configurationParameters.xml