docs: def snapshot_delete(repository, snapshot, hosts=None, profile=None):
      '''
      .. versionadded:: 2017.7.0
  
      Delete snapshot from specified repository.
  
      repository
          Repository name
      snapshot
          Snapshot name
  
      CLI example::
  
          salt myminion elasticsearch.snapshot_delete testrepo testsnapshot
      '''
      es = _get_instance(hosts, profile)
  
      try:
          result = es.snapshot.delete(repository=repository, snapshot=snapshot)
  
          return result.get('acknowledged', False)
      except elasticsearch.NotFoundError:
          return True
      except elasticsearch.TransportError as e:
          raise CommandExecutionError("Cannot delete snapshot {0} from repository {1}, server returned code {2} with message {3}".format(snapshot, repository, e.status_code, e.error))