Added support for deleting document by term