func (d *dynProviderState) deleteRecord(client *dynect.Client, ep *endpoint.Endpoint) error {
	link := d.buildLinkToRecord(ep)
	if link == "" {
		return nil
	}

	response := dynect.RecordResponse{}

	err := apiRetryLoop(func() error {
		return client.Do("DELETE", link, nil, &response)
	})

	log.Debugf("Deleting record %s: %+v,", link, errorOrValue(err, &response))
	return err
}
func (d *dynProviderState) deleteRecord(client *dynect.Client, ep *endpoint.Endpoint) error {
	link := d.buildLinkToRecord(ep)
	if link == "" {
		return nil
	}

	response := dynect.RecordResponse{}

	err := apiRetryLoop(func() error {
		return client.Do("DELETE", link, nil, &response)
	})

	log.Debugf("Deleting record %s: %+v,", link, errorOrValue(err, &response))
	return err
}
func ( d * dynProviderState ) deleteRecord ( client * dynect . Client , ep * endpoint . Endpoint ) error { link := d . buildLinkToRecord ( ep ) if link == " " { return nil } response := dynect . RecordResponse { } err := apiRetryLoop ( func ( ) error { return client . Do ( " " , link , nil , & response ) } ) log . Debugf ( " " , link , errorOrValue ( err , & response ) ) return err }
// deleteRecord deletes all existing records (CNAME, TXT, A) for the given Endpoint.DNSName with 1 API call
deleteRecord deletes all existing records ( CNAME TXT A ) for the given Endpoint . DNSName with 1 API call