func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error) {
	var deletedRecords []libdns.Record

	for _, rec := range records {
		err := p.setRecord(ctx, zone, rec, true)
		if err != nil {
			return nil, err
		}
		deletedRecords = append(deletedRecords, rec)
	}

	return deletedRecords, nil
}
// DeleteRecords deletes records from the zone and returns the records that were deleted.
DeleteRecords deletes records from the zone and returns the records that were deleted.
// DeleteRecords deletes records from the zone and returns the records that were deleted .
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error) {
	var deletedRecords []libdns.Record
	for _, rec := range records {
		err := p.setRecord(ctx, zone, rec, true)
		if err != nil {
			return nil, err
		}
		deletedRecords = append(deletedRecords, rec)
	}
	return deletedRecords, nil
}
func ( p * Provider ) DeleteRecords ( ctx context . Context , zone string , records [ ] libdns . Record ) ( [ ] libdns . Record , error ) { var deletedRecords [ ] libdns . Record for _ , rec := range records { err := p . setRecord ( ctx , zone , rec , true ) if err != nil { return nil , err } deletedRecords = append ( deletedRecords , rec ) } return deletedRecords , nil }
DeleteRecords deletes records from the zone and returns the records that were deleted.
DeleteRecords deletes records from the zone and returns the records that were deleted .