// Delete a contact
764726
func (self *Contact) Delete(handle string) (bool, error) {
	var res bool

	var params []interface{}
	if handle == "" {
		params = []interface{}{self.Key}
	} else {
		params = []interface{}{self.Key, handle}
	}
	if err := self.Call("contact.delete", params, &res); err != nil {
		return false, err
	}
	return res, nil
}
624409
func Delete(c *messagebird.Client, id string) (*Message, error) {
	message := &Message{}
	if err := c.Request(message, http.MethodDelete, path+"/"+id, nil); err != nil {
		return nil, err
	}

	return message, nil
}
82182
func (e *EmailsService) Delete(params interface{}) (result *Result) {
	result = e.client.delete(e.URL, params, nil)
	return
}
850344
func DeleteAttachment(a *Attachment, remove bool) error {
	_, err := DeleteAttachments([]*Attachment{a}, remove)
	return err
}
731525
func (m *MembershipsClient) Delete(ctx context.Context, membership *identity.ID) error {
	return m.client.RoundTrip(ctx, "DELETE", "/memberships/"+membership.String(), nil, nil, nil)
}
478805
func (gr *GoReq) Delete(targetURL string) *GoReq {
	//gr.Reset()
	gr.Method = DELETE
	gr.URL = targetURL
	gr.Errors = nil
	return gr
}
1160638
func (mr *MockDeploymentMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockDeployment)(nil).Delete), arg0, arg1)
}
813824
func (_m *ClusterServiceServer) Delete(_a0 context.Context, _a1 *cluster.ClusterQuery) (*cluster.ClusterResponse, error) {
	ret := _m.Called(_a0, _a1)

	var r0 *cluster.ClusterResponse
	if rf, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) *cluster.ClusterResponse); ok {
		r0 = rf(_a0, _a1)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*cluster.ClusterResponse)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery) error); ok {
		r1 = rf(_a0, _a1)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
678771
func (t *Manager) Delete(api Definition) {
	key := t.GetMethodPatternKey(t, api)
	delete(t.apiMethodPatternMap, key)
}
47944
func (user *User) DeleteConversation(other uint64) error {
	return Db().Where(`("from" = ? AND "to" = ?) OR ("from" = ? AND "to" = ?)`, user.ID(), other, other, user.ID()).Delete(&Pm{})
}
782266
func (mr *MockRenderedJobListMockRecorder) Delete() *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRenderedJobList)(nil).Delete))
}
1369576
func (callflow *CallFlow) Delete(client *messagebird.Client) error {
	return client.Request(nil, http.MethodDelete, apiRoot+"/call-flows/"+callflow.ID, nil)
}
793364
func (m *clientConnMap) Delete(dest string) {
	m.Lock()

	if conn, ok := m.conns[dest]; ok {
		_ = conn.Close()
	}
	delete(m.conns, dest)

	m.Unlock()
}
132339
func (s *UsersService) DeletePhoto() *UsersDeletePhotoCall {
	var call UsersDeletePhotoCall
	call.service = s
	return &call
}
785705
func (ns *NamedStopwatch) Delete(name string) {
	ns.Lock()
	defer ns.Unlock()

	if ns.stopwatches == nil {
		return
	}

	delete(ns.stopwatches, name) // check if it exists in case the user did the wrong thing
}
1147559
func (r *ChannelService) Delete(appId string, label string) *ChannelDeleteCall {
	c := &ChannelDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
	c.appId = appId
	c.label = label
	return c
}
747821
func RemoveContact(c *messagebird.Client, groupID, contactID string) error {
	formattedPath := fmt.Sprintf("%s/%s/contacts/%s", path, groupID, contactID)

	return c.Request(nil, http.MethodDelete, formattedPath, nil)
}