class Restforce::Client

def destroy(sobject, id)

Returns true if the sobject was successfully deleted, false otherwise.

client.delete('Account', '0016000000MRatd')
# Delete the Account with Id '0016000000MRatd'

Examples

Public: Delete a record.
def destroy(sobject, id)
  destroy!(sobject, id)
rescue *exceptions
  false
end