DynamoDB Dynomite Migrations Delete Table Examples

Delete Table

To create a migration that deletes a table

jets dynamodb:generate delete_products

dynamodb/migrate/20230801191725-delete_products.rb

class DeleteProducts < Dynomite::Migration
  def up
    delete_table :products
  end
end

Deleting tables is very fast and takes only a few seconds.