Method: Restforce::SObject#destroy
- Defined in:
- lib/restforce/sobject.rb
#destroy ⇒ Object
Public: Destroy this record.
Examples
account = client.query('select Id, Name from Account').first
account.destroy
42 43 44 45 |
# File 'lib/restforce/sobject.rb', line 42 def destroy ensure_id @client.destroy(sobject_type, self.Id) end |