improved teh deleteDoc method to receive a list of doc ids to delete