Skip to content

Instantly share code, notes, and snippets.

@shilov
Created February 17, 2015 08:03
Show Gist options
  • Save shilov/28ebee32bf0fb21a0160 to your computer and use it in GitHub Desktop.
Save shilov/28ebee32bf0fb21a0160 to your computer and use it in GitHub Desktop.
Drop all databases in Postgres by removing the current data cluster and recreating it
sudo pg_dropcluster --stop 9.4 main && sudo pg_createcluster 9.4 main && sudo pg_ctlcluster 9.4 main start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment