/*
Delete a resource from the server. Response is empty on success
*/
Delete a resource from the server. Response is empty on success
/ * Delete a resource from the server . Response is empty on success * /
func (r *Resource) Delete() error {
	url := r.Links.Self
	if url == "" {
		url = fmt.Sprintf("/%s/%s", r.Type, r.Id)
	}
	_, err := r.API.request("DELETE", url, nil, "")
	if err != nil {
		return err
	}
	r.Id = ""
	return nil
}
func ( r * Resource ) Delete ( ) error { url := r . Links . Self if url == " " { url = fmt . Sprintf ( " " , r . Type , r . Id ) } _ , err := r . API . request ( " " , url , nil , " " ) if err != nil { return err } r . Id = " " return nil }
Delete a resource from the server.
Delete a resource from the server .
// Make an extra effort