# File lib/aws/dynamo_db/item.rb, line 74 def delete(options = {}) client_opts = item_key_options(self) expected = expect_conditions(options) client_opts[:expected] = expected unless expected.empty? client_opts[:return_values] = options[:return].to_s.upcase if options[:return] resp = client.delete_item(client_opts) values_from_response_hash(resp.data["Attributes"]) if options[:return] and resp.data["Attributes"] end