Destroying a Postgres DB on Heroku

前端 未结 4 741
Happy的楠姐
Happy的楠姐 2020-12-04 09:53

I want to destroy the database but I\'m not sure what the command would be. Does anyone know how to do this?

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 10:11

    You shouldn't use a postgres command to fully delete your database, as you will not have permissions to create a new one. Instead you should use the heroku command to clear out your database:

    heroku pg:reset DATABASE_URL
    

提交回复
热议问题