8

How to remove postgres database from heroku, which was created using the dev free plan. https://postgres.heroku.com/databases

I tried using heroku addons:remove --confirm --app salty-river-24 but it says app not found. Is this the correct syntax.

4

3 回答 3

6

如果您使用 postgres.heroku.com 上的 Web UI 创建了数据库,则需要从https://postgres.heroku.com/databases导航到它,然后单击右侧的齿轮图标。应该有一个破坏链接。如果您没有看到破坏链接,那么您可能不是所有者并且缺乏权限。

于 2013-04-10T13:59:24.773 回答
3

看起来您缺少附加组件的名称。例子:

$ heroku addons:remove heroku-postgresql:dev --app salty-river-24

用于heroku addons --help查看帮助或heroku addons列出您的应用程序的附加组件。

于 2013-04-10T13:08:51.033 回答
1

首先,通过运行检查您拥有的所有插件:

$ heroku addons

这列出了所有可用的插件(详细名称、计划、价格和状态)。在这里,请注意插件旁边提供的详细信息。例如,您可能会看到如下内容:

heroku-postgresql (postgresql-cubic-88094) hobby-dev free created └─ as DATABASE

要删除此特定插件,请运行:

$ heroku addons:destroy postgresql-asymmetrical-03894

postgresql-cubic-88094在列出的插件中的括号中。

您将被要求输入您的应用程序的名称或使用重新运行命令--confirm <name-of-your-app>。这样做,插件将被删除。

通过运行确认插件已删除:

$ heroku addons
于 2020-10-04T04:42:00.583 回答