github.com/shishir-a412ed/docker@v1.3.2-0.20180103180333-fda904911d87/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  }