code: func (d *DNSProvider) logout() error {
  	if len(d.token) == 0 {
  		// nothing to do
  		return nil
  	}
  
  	url := fmt.Sprintf("%s/Session", defaultBaseURL)
  	req, err := http.NewRequest(http.MethodDelete, url, nil)
  	if err != nil {
  		return err
  	}
  	req.Header.Set("Content-Type", "application/json")
  	req.Header.Set("Auth-Token", d.token)
  
  	resp, err := d.config.HTTPClient.Do(req)
  	if err != nil {
  		return err
  	}
  	resp.Body.Close()
  
  	if resp.StatusCode != http.StatusOK {
  		return fmt.Errorf("API request failed to delete session with HTTP status code %d", resp.StatusCode)
  	}
  
  	d.token = ""
  
  	return nil
  }
docs: // Destroys Dyn Session