def rm_(name, recurse=False, profile=None):
 rtn = {'name': name, 'result': True, 'changes': {}}
 if (not __salt__['etcd.get'](name, profile=profile)):
  rtn['comment'] = 'Key does not exist'
  return rtn
 if __salt__['etcd.rm'](name, recurse=recurse, profile=profile):
  rtn['comment'] = 'Key removed'
  rtn['changes'] = {name: 'Deleted'}
 else:
  rtn['comment'] = 'Unable to remove key'
 return rtn

def rm_ ( name , recurse = False , profile = None ) : rtn = { 'name' : name , 'result' : True , 'changes' : { } } if ( not __salt__ [ 'etcd.get' ] ( name , profile = profile ) ) : rtn [ 'comment' ] = 'Key does not exist' return rtn if __salt__ [ 'etcd.rm' ] ( name , recurse = recurse , profile = profile ) : rtn [ 'comment' ] = 'Key removed' rtn [ 'changes' ] = { name : 'Deleted' } else : rtn [ 'comment' ] = 'Unable to remove key' return rtn
removes a container name container name or id force : false if true .