update deleteDocuments