blob: ad992c01d05853bfe9778ccebaf6ab51a6e12328 [file] [log] [blame]
package client
import "golang.org/x/net/context"
// ServiceRemove kills and removes a service.
func (cli *Client) ServiceRemove(ctx context.Context, serviceID string) error {
resp, err := cli.delete(ctx, "/services/"+serviceID, nil, nil)
ensureReaderClosed(resp)
return wrapResponseError(err, resp, "service", serviceID)
}