Improve document data deletion

in DocumentPeer::doDelete