DynamoDB Dynomite Migrations Delete Table Examples

Important: These docs are for the outdated Jets 5 versions and below. For the latest Jets docs: docs.rubyonjets.com

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.