This content is archived. See latest version here

Last updated: Apr 03 2014

This section describes how to delete documents froman index.


Individual documents can be deleted from the index using the IClient interfaces Delete method.

Here is an example:


The above code will delete the BlogPost with ID 42. It is also possible to delete all documents that match a certain criteria defined by a filter expression. For instance, the below code will delete all documents of type BlogPost as well as those of a type inheriting from BlogPost that are tagged with Banana.

client.Delete<BlogPost>(x => x.Tags.Match("Banana"));

Do you have feedback on this documentation? Send an email to For development-related questions and discussions, refer to our Forums on