def delete_share_doc(node, wname):
 db = share_db()
 sharejs_uuid = get_sharejs_uuid(node, wname)
 db['docs'].remove({'_id': sharejs_uuid})
 db['docs_ops'].remove({'name': sharejs_uuid})
 wiki_key = to_mongo_key(wname)
 del node.wiki_private_uuids[wiki_key]
 node.save()

def delete_share_doc ( node , wname ) : db = share_db ( ) sharejs_uuid = get_sharejs_uuid ( node , wname ) db [ 'docs' ] . remove ( { '_id' : sharejs_uuid } ) db [ 'docs_ops' ] . remove ( { 'name' : sharejs_uuid } ) wiki_key = to_mongo_key ( wname ) del node . wiki_private_uuids [ wiki_key ] node . save ( )
deletes share document and removes namespace from model .