pdclient/dispenser_client.go
func (s *PDClient) DeleteLease(leaseID, inventoryID, skuID string, metadata map[string]interface{}) (res *http.Response, err error) {
	var body io.Reader
	if body, err = s.getRequestBody(leaseID, inventoryID, skuID, "", 0, metadata); err == nil {
		req, _ := s.createRequest("DELETE", fmt.Sprintf("%s/v1/lease", s.URL), body)

		if res, err = s.client.Do(req); err != nil || res.StatusCode != http.StatusOK {
			lo.G.Error("client Do Error: ", err)
			lo.G.Error("client Res: ", res)
			err = ErrInvalidDispenserResponse
		}

	} else {
		lo.G.Error("request body error: ", err.Error())
	}
	return
}
func (s *PDClient) DeleteLease(leaseID, inventoryID, skuID string, metadata map[string]interface{}) (res *http.Response, err error) {
	var body io.Reader
	if body, err = s.getRequestBody(leaseID, inventoryID, skuID, "", 0, metadata); err == nil {
		req, _ := s.createRequest("DELETE", fmt.Sprintf("%s/v1/lease", s.URL), body)

		if res, err = s.client.Do(req); err != nil || res.StatusCode != http.StatusOK {
			lo.G.Error("client Do Error: ", err)
			lo.G.Error("client Res: ", res)
			err = ErrInvalidDispenserResponse
		}

	} else {
		lo.G.Error("request body error: ", err.Error())
	}
	return
}
//DeleteLease -- allows a client user to make a DELETE lease call to dispenser