Added feature to remove all documents from an index.