// Delete makes a POST request to the proper endpoint and with the required data
// to remove content from Ponzu
//
// The *APIResponse will indicate whether the request failed or succeeded based
// on the contents of its Data or JSON fields, or by checking the Status of it's
// original http.Response. Callers should expect failures to occur when a Content
// type does not implement the api.Deleteable interface
Delete makes a POST request to the proper endpoint and with the required data
to remove content from Ponzu

The *APIResponse will indicate whether the request failed or succeeded based
on the contents of its Data or JSON fields, or by checking the Status of it's
original http.Response. Callers should expect failures to occur when a Content
type does not implement the api.Deleteable interface
// Delete makes a POST request to the proper endpoint and with the required data // to remove content from Ponzu // // The * APIResponse will indicate whether the request failed or succeeded based // on the contents of its Data or JSON fields or by checking the Status of it ' s // original http . Response . Callers should expect failures to occur when a Content // type does not implement the api . Deleteable interface
func (c *Client) Delete(contentType string, id int) (*APIResponse, error) {
	endpoint := fmt.Sprintf(
		"%s/api/content/delete?type=%s&id=%d",
		c.Conf.Host, contentType, id,
	)
	req, err := multipartForm(endpoint, NewValues(), nil)
	if err != nil {
		return nil, err
	}
	w, err := c.Do(req)
	if err != nil {
		return nil, err
	}
	req = mergeHeader(req, c.Conf.Header)
	resp := &APIResponse{
		Response: w,
	}
	err = resp.process()
	if err != nil {
		return nil, err
	}
	return resp, nil
}
func ( c * Client ) Delete ( contentType string , id int ) ( * APIResponse , error ) { endpoint := fmt . Sprintf ( " " , c . Conf . Host , contentType , id , ) req , err := multipartForm ( endpoint , NewValues ( ) , nil ) if err != nil { return nil , err } w , err := c . Do ( req ) if err != nil { return nil , err } req = mergeHeader ( req , c . Conf . Header ) resp := & APIResponse { Response : w , } err = resp . process ( ) if err != nil { return nil , err } return resp , nil }
Delete makes a POST request to the proper endpoint and with the required data
to remove content from Ponzu
Delete makes a POST request to the proper endpoint and with the required data to remove content from Ponzu