func (s *Session) DeleteEntity(object Identifiable) *Error {

	url, berr := s.getPersonalURL(object)
	if berr != nil {
		return berr
	}

	url = url + "?responseChoice=1"
	request, err := http.NewRequest("DELETE", url, nil)

	if err != nil {
		return NewBambouError("HTTP transaction error", err.Error())
	}

	response, berr := s.send(request, nil)
	if berr != nil {
		return berr
	}
	defer response.Body.Close()

	return nil
}
func (s *Session) DeleteEntity(object Identifiable) *Error {

	url, berr := s.getPersonalURL(object)
	if berr != nil {
		return berr
	}

	url = url + "?responseChoice=1"
	request, err := http.NewRequest("DELETE", url, nil)

	if err != nil {
		return NewBambouError("HTTP transaction error", err.Error())
	}

	response, berr := s.send(request, nil)
	if berr != nil {
		return berr
	}
	defer response.Body.Close()

	return nil
}
func ( s * Session ) DeleteEntity ( object Identifiable ) * Error { url , berr := s . getPersonalURL ( object ) if berr != nil { return berr } url = url + " " request , err := http . NewRequest ( " " , url , nil ) if err != nil { return NewBambouError ( " " , err . Error ( ) ) } response , berr := s . send ( request , nil ) if berr != nil { return berr } defer response . Body . Close ( ) return nil }
// DeleteEntity deletes the given Identifiable from the server.
DeleteEntity deletes the given Identifiable from the server .