// Terminate terminates the given volume specified with the volume id func (v Volumes) TerminateAll(client *amazon.Client) { if len(v) == 0 { return } var wg sync.WaitGroup for id := range v { wg.Add(1) go func(id string) { client.DeleteVolume(id) wg.Done() }(id) } wg.Wait() }