github.com/LazyboyChen7/engine@v17.12.1-ce-rc2+incompatible/client/service_remove.go (about) 1 package client 2 3 import "golang.org/x/net/context" 4 5 // ServiceRemove kills and removes a service. 6 func (cli *Client) ServiceRemove(ctx context.Context, serviceID string) error { 7 resp, err := cli.delete(ctx, "/services/"+serviceID, nil, nil) 8 ensureReaderClosed(resp) 9 return wrapResponseError(err, resp, "service", serviceID) 10 }