def delete_table(table, family='ipv4'):
 if (not table):
  return 'Error: table needs to be specified'
 if (not check_table(table, family=family)):
  return 'Error: table {0} in family {1} does not exist'.format(table, family)
 nft_family = _NFTABLES_FAMILIES[family]
 cmd = '{0} delete table {1} {2}'.format(_nftables_cmd(), nft_family, table)
 out = __salt__['cmd.run'](cmd, python_shell=False)
 if (not out):
  out = True
 return out

def delete_table ( table , family = 'ipv4' ) : if ( not table ) : return 'Error: table needs to be specified' if ( not check_table ( table , family = family ) ) : return 'Error: table {0} in family {1} does not exist' . format ( table , family ) nft_family = _NFTABLES_FAMILIES [ family ] cmd = '{0} delete table {1} {2}' . format ( _nftables_cmd ( ) , nft_family , table ) out = __salt__ [ 'cmd.run' ] ( cmd , python_shell = False ) if ( not out ) : out = True return out
deletes a table in a given dataset .