Documents can be deleted from the search network using the delete method of the Indexer class.
To delete documents, you must pass an array of document keys, as well as a delete options object, to the delete method of the Indexer class.
An asynchronous delete flag is available as an option. In the case of asynchronous deletion, you can track the completion of the operation by subscribing to the DeletionCompleted event.
The following code example demonstrates how to delete documents from the search network.