github.com/endophage/docker@v1.4.2-0.20161027011718-242853499895/client/checkpoint_delete.go (about)

     1  package client
     2  
     3  import (
     4  	"golang.org/x/net/context"
     5  )
     6  
     7  // CheckpointDelete deletes the checkpoint with the given name from the given container
     8  func (cli *Client) CheckpointDelete(ctx context.Context, containerID string, checkpointID string) error {
     9  	resp, err := cli.delete(ctx, "/containers/"+containerID+"/checkpoints/"+checkpointID, nil, nil)
    10  	ensureReaderClosed(resp)
    11  	return err
    12  }