private void DeleteItem(ISearchIndex index, IIndexableId indexableId, string itemPath) { WriteVerbose($"Removing item {itemPath} from index {index.Name}."); var job = IndexCustodian.DeleteItem(index, indexableId); if (job != null && AsJob) { WriteVerbose($"Background job created: {job.Name}"); WriteObject(job); } }
public IJob DeleteItem(ISearchIndex index, IIndexableId indexableId) { var job = IndexCustodian.DeleteItem(index, indexableId); return(job == null ? null : new SpeJob(job)); }