diff --git a/endpoints.go b/endpoints.go index 7d1ad7a..b105a44 100644 --- a/endpoints.go +++ b/endpoints.go @@ -44,6 +44,11 @@ func (client *Client) DeleteVolume(name string) (*Response, *ResponseStatus, err return client.Request(fmt.Sprintf("/delete/volumes/\"%s\"", name)) } +// DeleteHost : deletes a hotst by its ID or nickname +func (client *Client) DeleteHost(name string) (*Response, *ResponseStatus, error) { + return client.Request(fmt.Sprintf("/delete/host/\"%s\"", name)) +} + // ShowHostMaps : list the volume mappings for given host // If host is an empty string, mapping for all hosts is shown func (client *Client) ShowHostMaps(host string) ([]Volume, *ResponseStatus, error) { diff --git a/request.go b/request.go index f4dc6b1..4922a69 100644 --- a/request.go +++ b/request.go @@ -19,7 +19,6 @@ func (req *Request) execute(client *Client) ([]byte, int, error) { return nil, 0, err } - fmt.Println(client.sessionKey) httpReq.Header.Set("sessionKey", client.sessionKey) res, err := client.HTTPClient.Do(httpReq) if err != nil {