def delete_snapshots(name, *names, **kwargs):
 deleted = dict()
 for snap in _get_domain(name).listAllSnapshots():
  if ((snap.getName() in names) or (not names)):
   deleted[snap.getName()] = _parse_snapshot_description(snap)
   snap.delete()
 return {'available': list_snapshots(name), 'deleted': deleted}

def delete_snapshots ( name , * names , ** kwargs ) : deleted = dict ( ) for snap in _get_domain ( name ) . listAllSnapshots ( ) : if ( ( snap . getName ( ) in names ) or ( not names ) ) : deleted [ snap . getName ( ) ] = _parse_snapshot_description ( snap ) snap . delete ( ) return { 'available' : list_snapshots ( name ) , 'deleted' : deleted }
delete one or more snapshots of the given vm .