github.com/OpenFlowLabs/moby@v17.12.1-ce-rc2+incompatible/client/config_remove.go (about) 1 package client 2 3 import "golang.org/x/net/context" 4 5 // ConfigRemove removes a Config. 6 func (cli *Client) ConfigRemove(ctx context.Context, id string) error { 7 if err := cli.NewVersionError("1.30", "config remove"); err != nil { 8 return err 9 } 10 resp, err := cli.delete(ctx, "/configs/"+id, nil, nil) 11 ensureReaderClosed(resp) 12 return wrapResponseError(err, resp, "config", id) 13 }