prow/github/client.go
func (c *Client) DeleteRef(org, repo, ref string) error {
	c.log("DeleteRef", org, repo, ref)
	_, err := c.request(&request{
		method:    http.MethodDelete,
		path:      fmt.Sprintf("/repos/%s/%s/git/refs/%s", org, repo, ref),
		exitCodes: []int{204},
	}, nil)
	return err
}
func (c *Client) DeleteRef(org, repo, ref string) error {
	c.log("DeleteRef", org, repo, ref)
	_, err := c.request(&request{
		method:    http.MethodDelete,
		path:      fmt.Sprintf("/repos/%s/%s/git/refs/%s", org, repo, ref),
		exitCodes: []int{204},
	}, nil)
	return err
}
// DeleteRef deletes the given ref
//
// See https://developer.github.com/v3/git/refs/#delete-a-reference