*/
public boolean remove() throws WGAPIException {
_db.removeContent(_key.getFolder(), _key.getKey());
if(_doc != null) {
// Struct entry must also be deleted bc. it would remain cached otherwise
WGSessionContext sessionContext = _doc.getDatabase().getSessionContext();
boolean cascadeDeletions = sessionContext.isCascadeDeletions();
sessionContext.setCascadeDeletions(false);
_doc.getStructEntry().remove();
sessionContext.setCascadeDeletions(true);
}
_deleted = true;
return true;
}