1. Docs
  2. Infrastructure as Code
  3. Get Started
  4. Azure
  5. Destroy stack

Pulumi & Azure: Destroy stack

    Now that you’ve seen how to deploy changes to our program, let’s clean up and tear down the resources that are part of your stack.

    To destroy resources, run the following:

    pulumi destroy 

    You’ll be prompted to make sure you really want to delete these resources. This can take a minute or two; Pulumi waits until all resources are shut down and deleted before it considers the destroy operation to be complete.

    Previewing destroy (dev): Type Name Plan - pulumi:pulumi:Stack quickstart-dev delete - ├─ azure-native:storage:Blob index.html delete - ├─ azure-native:storage:StorageAccountStaticWebsite staticWebsite delete - ├─ azure-native:storage:StorageAccount sa delete - └─ azure-native:resources:ResourceGroup resourceGroup delete Outputs: - primaryStorageKey: "<key_value>" - staticEndpoint : "https://sa8dd8af62.z22.web.core.windows.net/" Resources: - 5 to delete Do you want to perform this destroy? yes Destroying (dev): Type Name Status - pulumi:pulumi:Stack quickstart-dev deleted - ├─ azure-native:storage:Blob index.html deleted - ├─ azure-native:storage:StorageAccountStaticWebsite staticWebsite deleted - ├─ azure-native:storage:StorageAccount sa deleted - └─ azure-native:resources:ResourceGroup resourceGroup deleted Outputs: - primaryStorageKey: "<key_value>" - staticEndpoint : "https://sa8dd8af62.z22.web.core.windows.net/" Resources: - 5 deleted Duration: 53s 

    To delete the stack itself, run pulumi stack rm. Note that this removes the stack entirely from Pulumi Cloud, along with all of its update history.

    Congratulations! You’ve successfully provisioned some cloud resources using Pulumi. By completing this guide you have successfully:

    • Created a Pulumi new project.
    • Provisioned a new Azure storage account and container.
    • Added an index.html file to your container.
    • Served the index.html as a static website.
    • Destroyed the resources you’ve provisioned.

    On the next page, we have a collection of examples and tutorials that you can deploy as they are or use them as a foundation for your own applications and infrastructure projects.

      Neo just got smarter about infrastructure policy automation