lib/dynamoid/adapter/aws_sdk.rb
# Removes an item from DynamoDB.
#
# @param [String] table_name the name of the table
# @param [String] key the hash key of the item to delete
# @param [Number] range_key the range key of the item to delete, required if the table has a composite key
#
# @since 0.2.0
Removes an item from DynamoDB.
Removes an item from DynamoDB .
def delete_item(table_name, key, options = {})
        range_key = options.delete(:range_key)
        table = get_table(table_name)
        result = table.items.at(key, range_key)
        result.delete unless result.attributes.to_h.empty?
        true
      end
def delete_item ( table_name , key , options = { } ) range_key = options . delete ( :range_key ) table = get_table ( table_name ) result = table . items . at ( key , range_key ) result . delete unless result . attributes . to_h . empty? true end
Removes an item from DynamoDB.
Removes an item from DynamoDB .
table_name
<not_specific>
key
<not_specific>
options
<not_specific>
<not_specific>
range_key the range key of the item to delete, required if the table has a composite key
range_key the range key of the item to delete required if the table has a composite key
since
None