implementation and test for deleting documents in index by id