Why you are here You ran a migration that went sideways, or you are resetting a local dev database, or a test suite needs a clean slate. The psql console has 40 tables and you do not want to type DROP TABLE 40 times. There is a one-command way to do it.

Source: [Dev.to](https://dev.to/mahdi_benrhouma_fe1c6005/how-to-drop-all-tables-in-postgresql-safely-2026-1a47)

Sponsored