code: func (d *DNSProvider) logout() error {
  	if len(d.token) == 0 {
  		// nothing to do
  		return nil
  	}
  
  	resp, err := d.sendRequest(http.MethodGet, "logout", nil, nil)
  	if err != nil {
  		return err
  	}
  	defer resp.Body.Close()
  
  	if resp.StatusCode != 200 {
  		return fmt.Errorf("bluecat: request failed to delete session with HTTP status code %d", resp.StatusCode)
  	}
  
  	authBytes, err := ioutil.ReadAll(resp.Body)
  	if err != nil {
  		return err
  	}
  	authResp := string(authBytes)
  
  	if !strings.Contains(authResp, "successfully") {
  		msg := strings.Trim(authResp, "\"")
  		return fmt.Errorf("bluecat: request failed to delete session: %s", msg)
  	}
  
  	d.token = ""
  
  	return nil
  }
docs: // Destroys Bluecat Session