1. Docs
  2. Clouds
  3. Kubernetes
  4. Get started
  5. Destroy stack

Pulumi & Kubernetes: Destroy stack

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

    To destroy resources, run the following:

    $ pulumi destroy

    You’ll be prompted to make sure you really want to delete these resources.

    Previewing destroy (dev):
         Type                           Name            Plan
     -   pulumi:pulumi:Stack            quickstart-dev  delete
     -   ├─ kubernetes:core:Service     nginx           delete
     -   └─ kubernetes:apps:Deployment  nginx           delete
      - ip: ""
        - 3 to delete
    Do you want to perform this destroy? yes
    Destroying (dev):
         Type                           Name            Status
     -   pulumi:pulumi:Stack            quickstart-dev  deleted
     -   ├─ kubernetes:core:Service     nginx           deleted
     -   └─ kubernetes:apps:Deployment  nginx           deleted
      - ip: ""
        - 3 deleted
    Duration: 1s

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

    Next, we’ll look at some next steps.

      Pulumi AI - What cloud infrastructure would you like to build? Generate Program