1 package bunny 2 3 import ( 4 "context" 5 "fmt" 6 ) 7 8 // Delete removes the DNS Zone with the given id. 9 // 10 // Bunny.net API docs: https://docs.bunny.net/reference/dnszonepublic_delete 11 func (s *DNSZoneService) Delete(ctx context.Context, id int64) error { 12 path := fmt.Sprintf("dnszone/%d", id) 13 return resourceDelete(ctx, s.client, path, nil) 14 } 15