pullzone_delete.go raw

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