github.com/opsramp/moby@v1.13.1/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 err
    10  }