doc = db.getDocument(entry);
} catch (Exception e) {
// error if the doc isn't found, we deal with the null result below
}
if (doc != null) {
db.deleteDocument(doc);
return ProviderHelper.nocontent();
} else
return ProviderHelper.notfound(request);
}