anyone know how to remove a stack output from an o...
# getting-started
b
anyone know how to remove a stack output from an old resource? I was working through some code and added a bucket a while back that got removed from the stack but somehow after running “pulumi up” I still get the output listed even thought the resource is no longer there. I can’t delete it from the stack as it does not have a urn. I could edit the state file to remove it, but I’d like to do that through a pulumi command (if possible)
Copy code
➜ pulumi up -y
Previewing update (dai-shared-dev-us-west-2):
     Type                 Name                                 Plan     
...     
 
Resources:
    7 unchanged

Updating (...):
   Type  Name  Status     
 
Outputs:
  - bucket_name: "my-bucket-57931f5" <- ##### HOW TO REMOVE THIS?

Resources:
    7 unchanged

Duration: 1s
The statefile has this, I could easily remove it
Copy code
{
  "urn": "<redacted>",
  "custom": false,
  "type": "pulumi:pulumi:Stack",
  "outputs": {
    "bucket_name": "my-bucket-57931f5"
  }
}