Method: BaseCRM::SourcesService#destroy

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

#destroy(id) ⇒ Boolean

Delete a source

delete ‘/sources/BaseCRM#id

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

Parameters:

  • id (Integer)

    Unique identifier of a Source

Returns:

  • (Boolean)

    Status of the operation.



112
113
114
115
# File 'lib/basecrm/services/sources_service.rb', line 112

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