Add API endpoint to delete documents.