String result = null;
if ("".equals(_id)) {
ApplicationException e = new DocumentException(ErrorCodes.DOCUMENT_DOES_NOT_EXIST, "File Data Missing in Request Body");
result = formErrorResponse(logger, e);
} else {
result = gridFSService.deleteFile(dbName, bucketName, _id);
}
return result;
}
});
return response;