Method: BaseCRM::ContactsService#destroy

Defined in:
lib/basecrm/services/contacts_service.rb

#destroy(id) ⇒ Boolean

Delete a contact

delete ‘/contacts/BaseCRM#id

Delete an existing contact If the specified contact does not exist, the request will return an error This operation cannot be undone

Parameters:

  • id (Integer)

    Unique identifier of a Contact

Returns:

  • (Boolean)

    Status of the operation.



117
118
119
120
# File 'lib/basecrm/services/contacts_service.rb', line 117

def destroy(id)
  status, _, _ = @client.delete("/contacts/#{id}")
  status == 204
end