// DeleteConnector deletes a connector, halting all tasks and deleting its configuration.
// It return a 409 (Conflict) status code error if rebalance is in process.
DeleteConnector deletes a connector, halting all tasks and deleting its configuration.
It return a 409 (Conflict) status code error if rebalance is in process.
// DeleteConnector deletes a connector halting all tasks and deleting its configuration . // It return a 409 ( Conflict ) status code error if rebalance is in process .
func (c *Client) DeleteConnector(clusterName, name string) error {
	if clusterName == "" {
		return errRequired("clusterName")
	}
	if name == "" {
		return errRequired("name")
	}
	path := fmt.Sprintf(connectorPath, clusterName, name)
	resp, err := c.Do(http.MethodDelete, path, "", nil)
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
func ( c * Client ) DeleteConnector ( clusterName , name string ) error { if clusterName == " " { return errRequired ( " " ) } if name == " " { return errRequired ( " " ) } path := fmt . Sprintf ( connectorPath , clusterName , name ) resp , err := c . Do ( http . MethodDelete , path , " " , nil ) if err != nil { return err } return resp . Body . Close ( ) }
DeleteConnector deletes a connector, halting all tasks and deleting its configuration.
DeleteConnector deletes a connector halting all tasks and deleting its configuration .
// # Remove a running connector // DELETE /api/proxy-connect/(string: clusterName)/connectors/(string: name)