def alias_delete(indices, aliases, hosts=None, body=None, profile=None):
 es = _get_instance(hosts, profile)
 try:
  result = es.indices.delete_alias(index=indices, name=aliases)
  if result.get('acknowledged', False):
   return True
 except elasticsearch.exceptions.NotFoundError:
  return None
 return None

def alias_delete ( indices , aliases , hosts = None , body = None , profile = None ) : es = _get_instance ( hosts , profile ) try : result = es . indices . delete_alias ( index = indices , name = aliases ) if result . get ( 'acknowledged' , False ) : return True except elasticsearch . exceptions . NotFoundError : return None return None
delete an alias of an index cli example:: salt myminion elasticsearch .