code: func (n *Network) Cleanup() {
  	nw, err := n.DockerClient.NetworkInfo(n.NetworkID)
  	Expect(err).NotTo(HaveOccurred())
  
  	err = n.DockerClient.RemoveNetwork(nw.ID)
  	Expect(err).NotTo(HaveOccurred())
  
  	containers, err := n.DockerClient.ListContainers(docker.ListContainersOptions{All: true})
  	Expect(err).NotTo(HaveOccurred())
  	for _, c := range containers {
  		for _, name := range c.Names {
  			if strings.HasPrefix(name, "/"+n.NetworkID) {
  				err := n.DockerClient.RemoveContainer(docker.RemoveContainerOptions{ID: c.ID, Force: true})
  				Expect(err).NotTo(HaveOccurred())
  				break
  			}
  		}
  	}
  
  	images, err := n.DockerClient.ListImages(docker.ListImagesOptions{All: true})
  	Expect(err).NotTo(HaveOccurred())
  	for _, i := range images {
  		for _, tag := range i.RepoTags {
  			if strings.HasPrefix(tag, n.NetworkID) {
  				err := n.DockerClient.RemoveImage(i.ID)
  				Expect(err).NotTo(HaveOccurred())
  				break
  			}
  		}
  	}
  }
docs: // Cleanup attempts to cleanup docker related artifacts that may
  // have been created by the network.