4f0d95fa | package client // import "github.com/docker/docker/client" |
10273810 | |
7d62e40f | import "context" |
10273810 | // ConfigRemove removes a Config. func (cli *Client) ConfigRemove(ctx context.Context, id string) error { |
1401342f | if err := cli.NewVersionError("1.30", "config remove"); err != nil { return err } |
10273810 | resp, err := cli.delete(ctx, "/configs/"+id, nil, nil) |
9c846b2f | defer ensureReaderClosed(resp) |
81bb9978 | return wrapResponseError(err, resp, "config", id) |
10273810 | } |