Removing asset code

There are two ways you can remove the IaC stack of an asset: either by creating a code that makes the IaC stack inactive or by removing the asset code completely.

Before you begin

The IaC stack of the asset you want to remove must be in the version control system that is integrated with Firefly.

Procedure

  1. Go to the left pane > Inventory.

  2. To remove the asset code of multiple assets, select the desired assets and select the Trash icon.

    1. To create a code that makes the IaC inactive without removing the code, turn on the toggle Comment out code.

  3. Select Pull request.

  4. Enter your pull request comment in the box.

  5. If there is more than one IaC stack, select the checkbox of the desired IaC stack(s).

  6. Select Create Pull Request.

  7. After the pull request is approved, to delete the IaC stack from your version control system, merge the pull request with the main repository.

  8. To remove the asset from the cloud, run the command shown.

  9. To update the Terraform state, run the command given in the Remove asset code request drawer.

Last updated