lib/dynamoid/adapter.rb
# Delete an item from a table. If partitioning is turned on, deletes all partitioned keys as well.
#
# @param [String] table the name of the table to write the object to
# @param [String] id the id of the record
# @param [Number] range_key the range key of the record
#
# @since 0.2.0
Delete an item from a table. If partitioning is turned on, deletes all partitioned keys as well.
Delete an item from a table . If partitioning is turned on deletes all partitioned keys as well .
def delete(table, id, options = {})
      if Dynamoid::Config.partitioning?
        id_with_partitions(id).each {|i| delete_item(table, i, options)}
      else
        delete_item(table, id, options)
      end
    end
def delete ( table , id , options = { } ) if Dynamoid :: Config . partitioning? id_with_partitions ( id ) . each { | i | delete_item ( table , i , options ) } else delete_item ( table , id , options ) end end
Delete an item from a table.
Delete an item from a table .
table
<not_specific>
id
<not_specific>
options
<not_specific>
<not_specific>
range_key the range key of the record
range_key the range key of the record
since
None