class StatelyDB::Transaction::Transaction

def delete(*key_paths)

Returns:
  • (void) - nil

Parameters:
  • key_paths (String, Array) -- the paths to the items. Max 50 key paths.
def delete(*key_paths)
  key_paths = Array(key_paths).flatten
  req = Stately::Db::TransactionRequest.new(
    delete_items: Stately::Db::TransactionDelete.new(
      deletes: key_paths.map { |key_path| Stately::Db::DeleteItem.new(key_path: String(key_path)) }
    )
  )
  request_only(req)
  nil
end