16 lines
		
	
	
		
			399 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			399 B
		
	
	
	
		
			Go
		
	
	
	
| package buildah
 | |
| 
 | |
| import "fmt"
 | |
| 
 | |
| // Delete removes the working container.  The buildah.Builder object should not
 | |
| // be used after this method is called.
 | |
| func (b *Builder) Delete() error {
 | |
| 	if err := b.store.DeleteContainer(b.ContainerID); err != nil {
 | |
| 		return fmt.Errorf("deleting build container %q: %w", b.ContainerID, err)
 | |
| 	}
 | |
| 	b.MountPoint = ""
 | |
| 	b.Container = ""
 | |
| 	b.ContainerID = ""
 | |
| 	return nil
 | |
| }
 |