DIndexJob Class
Set the "remove deleted" action in the index job. Removing deleted documents cause the indexer to check whether each document in the index still exists, and to remove from the index any documents that no longer exist.