(self, uid, did, rdb)
This will delete a specified domain id
This will delete a specified domain id
This will delete a specified domain id
def deleteDomain(self, uid, did, rdb):
        ''' This will delete a specified domain id '''
        check = r.table('domains').get(did).run(rdb)
        if check['uid']:
            delete = r.table('domains').get(did).delete().run(rdb)
            if delete['deleted'] == 1:
                return True
            else:
                return False
        else:
            return False
def deleteDomain ( self , uid , did , rdb ) : check = r . table ( 'domains' ) . get ( did ) . run ( rdb ) if check [ 'uid' ] : delete = r . table ( 'domains' ) . get ( did ) . delete ( ) . run ( rdb ) if delete [ 'deleted' ] == 1 : return True else : return False else : return False