Sharepoint 2013 will keep the content available for 240 hours (10 days) by default after the KD is retired in Service Desk SDM. This interval can be changed by configuring the ErrorDeleteIntervalAllowed parameter.
Also, if Sharepoint cannot access a specific KD due to a network problem or similar, it will retry 10 times based on the ErrorDeleteCountAllowed parameter to delete the KD.
The following steps illustrate how to check the current settings and reconfigure the ErrorDeleteIntervalAllowed parameter
Firstly check the current settings of the ErrorDeleteIntervalAllowed and ErrorDeleteCountAllowed.
- Click Start button > Sharepoint 2013 Central Administration > Sharepoint 2013 Management Shell.
- Run "$sa = Get-SPEnterpriseSearchServiceApplication"
- Run the below command. Each command will show you the following values (They are parts of "→xx").
? $sa.getproperty("ErrorDeleteIntervalAllowed") → 240
It is possible to change the value of these parameters as shown below. The change will be reflected immediately. There is no need to recycle the service or reboot the OS.
After changing these settings, when a KD is retired in Service Desk and crawled in Sharepoint 2013, the content of the retired KD in Sharepoint 2013 will be deleted in 1 hour. The Sharepoint search will NOT return the KD from a search after this time has passed.