Method: SimpleRecord::ActiveSdb::Base#delete

Defined in:
lib/simple_record/active_sdb.rb

#delete(options = {}) ⇒ Object

Delete the Item entirely from SDB.

sandy = Client.find_by_name 'Sandy'
sandy.reload
sandy.inspect       #=> #<Client:0xb7761d28 @new_record=false, @attributes={"name"=>["Sandy"], "id"=>"b2832ce2-e461-11dc-b13c-001bfc466dd7", "toys"=>["boys", "kids", "patchwork"}>
puts sandy.delete
sandy.reload
puts sandy.inspect  #=> #<Client:0xb7761d28 @attributes={}, @new_record=false>


970
971
972
973
# File 'lib/simple_record/active_sdb.rb', line 970

def delete(options={})
    raise_on_id_absence
    connection.delete_attributes(options[:domain] || domain, id)
end