Method: Restforce::SObject#destroy

Defined in:
lib/restforce/sobject.rb

#destroyObject

Public: Destroy this record.

Examples

 = client.query('select Id, Name from Account').first
.destroy

42
43
44
45
# File 'lib/restforce/sobject.rb', line 42

def destroy
  ensure_id
  @client.destroy(sobject_type, self.Id)
end