Skip to main content

Destroy and Delete Application via Portal

In this section, you will find a guide on how to destroy and delete your Application via the Portal.


To completely delete your Application from the StackSpot EDP Portal, all versions of your Application must be destroyed in every environment where it was deployed. If an Application has associated Infrastructures, they must also be destroyed.

warning
  • Through the 'Check Connection Interfaces' button, it is possible to check which Workspace is using the Connection Interface shared with the Application or Infrastructure. This button is only displayed when there is a deploy in any environment.

  • To destroy an Application or Infrastructure, you must have permission to execute the command stk register app-destroy.

Follow the steps below to destroy an Application:

Step 1. Access your Workspace and then click on the Application you want to destroy;

Step 2. Now, click on the 'Settings' subsection;

Step 3. Click the 'Destroy Application' button;

Step 4. Fill in the following information:

  • Branch: Select the branch where the Application you want to destroy is located.
  • Type the word “DESTROY”.

Step 5. Click the 'Destroy Application' button.

When the Workflow is completed, a Pull Request (PR) is created and needs to be approved and merged for the Application destruction to be finalized.

Done, you have destroyed an Application. It will be destroyed synchronously.

After that, you are responsible for destroying the Application in your cloud.

To destroy an Application Infrastructure you need to remove the Plugins of type infra from it. To do this, use the command stk remove plugin and run an empty deployment with the infra plugins removed. If you prefer to use the StackSpot EDP Portal, follow the steps below:

Step 1. Access your Workspace and then click on the Application you want to destroy the Infrastructure;

Step 2. Now click on the 'Settings' subsection;

Step 3. Click on the button 'Destroy Application Infrastructure';

Step 4. Fill in the following information:

  • Branch: select the branch where the Infrastructure you want to destroy is located
  • Type the word “DESTROY”.

Step 5. Click on the 'Destroy Application Infrastructure' button.

When the Workflow is completed, a Pull Request (PR) is created and needs to be approved and merged in order for the Application Infrastructure Destruction to be completed. It will be destroyed asynchronously.


With this, you push an empty Infrastructure version to StackSpot EDP, allowing you to delete your Application via the StackSpot EDP Portal.

Check the complete flow to delete the Application in the following diagram:

Delete Application with Infrastructure deploy via Self-hosted

Diagram of deleting an application with infrastructure deploy via Self-hostedDiagram of deleting an application with infrastructure deploy via Self-hosted

Delete Application with Infrastructure deploy via Runtimes Engine

Diagram of deleting an application with infrastructure deploy via Runtimes.Diagram of deleting an application with infrastructure deploy via Runtimes.

After destroying all versions of the Application and its Infrastructures, follow the steps below to delete it:

warning

Before deleting your Application, ensure there are no active deployments. This is because when an Application is deleted, all associated deployments are also deleted.

Step 1. Log in to the StackSpot EDP Portal and click 'Applications' in the main menu on the homepage;

Step 2. Find and select your Application to access its dashboard;

Step 3. In the main menu of the Application, click on the 'Settings' section;

Step 4. Click the 'Delete Application' button at the bottom of the screen;

Step 5. Type the word “DELETE” and then click the 'Delete Application' button.

info

The 'Delete Application' button remains inactive while the 'Destroy Application' and 'Destroy Application Infrastructure' buttons are still pending. In other words, it is not possible to delete an Application while there are still deployed Infrastructures or Applications.

Done, you've deleted your Application.