【发布时间】:2020-10-04 12:42:00
【问题描述】:
如何从使用开发免费计划创建的 heroku 中删除 postgres 数据库。 https://postgres.heroku.com/databases
我尝试使用 heroku 插件:remove --confirm --app salty-river-24 但它说找不到应用程序。这是正确的语法吗?
【问题讨论】:
标签: postgresql heroku
如何从使用开发免费计划创建的 heroku 中删除 postgres 数据库。 https://postgres.heroku.com/databases
我尝试使用 heroku 插件:remove --confirm --app salty-river-24 但它说找不到应用程序。这是正确的语法吗?
【问题讨论】:
标签: postgresql heroku
如果您使用 postgres.heroku.com 上的 Web UI 创建了数据库,您需要从 https://postgres.heroku.com/databases 导航到它,然后单击右侧的齿轮图标。应该有一个 destroy 链接。如果您没有看到破坏链接,那么您可能不是所有者并且缺乏权限。
【讨论】:
您似乎缺少插件的名称。示例:
$ heroku addons:remove heroku-postgresql:dev --app salty-river-24
使用heroku addons --help 查看帮助,或使用heroku addons 列出您应用的插件。
【讨论】:
heroku apps 时获得的应用程序集中?另外,您是否安装了最新的Heroku Toolbelt?
首先,通过运行检查您拥有的所有插件:
$ 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
【讨论】: