def delPrivacyList(disp, listname):
 resp = disp.SendAndWaitForResponse(Iq('set', NS_PRIVACY, payload=[Node('list', {'name': listname})]))
 if isResultNode(resp):
  return 1

def delPrivacyList ( disp , listname ) : resp = disp . SendAndWaitForResponse ( Iq ( 'set' , NS_PRIVACY , payload = [ Node ( 'list' , { 'name' : listname } ) ] ) ) if isResultNode ( resp ) : return 1
deletes privacy list listname .