📜  heroku cli delete app - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:41:42.965000             🧑  作者: Mango

Heroku CLI Delete App

Heroku CLI (Command Line Interface) is a powerful tool that allows developers to manage their Heroku applications directly from the command line. One of the key features of Heroku CLI is the ability to delete an app using the heroku apps:destroy command.

Prerequisites

Before you can delete an app using Heroku CLI, ensure that you have the following:

  1. Heroku CLI installed on your machine.
  2. A Heroku account.
  3. Access to the app you want to delete.
Delete an App using Heroku CLI

To delete an app using Heroku CLI, follow these steps:

  1. Open your terminal or command prompt.
  2. Log in to your Heroku account using the heroku login command.
  3. Change to the directory where your app's code is located, if necessary.
  4. Run the following command to delete the app:
heroku apps:destroy --app APP_NAME

Replace APP_NAME with the actual name of your app.

Example
heroku apps:destroy --app my-awesome-app
Additional Options

Heroku CLI provides additional options for deleting an app, including deleting all associated resources, confirming the deletion, and bypassing confirmation prompts. You can explore these options by running heroku apps:destroy --help.

Conclusion

In this guide, we explored how to delete an app using Heroku CLI. Heroku CLI provides a convenient and efficient way to manage your Heroku applications, making it easier for developers to streamline their workflow. Remember to exercise caution when deleting apps, as this action is irreversible.