How can I undo `pulumi.export("some","value")`? Is...
# general
g
How can I undo
pulumi.export("some","value")
? Is this a bug? I exported the value and now I'd like to remove it so I removed it from the code and
pulumi up -y
Diff showed
Copy code
Outputs:
  - some: "value"
But then
pulumi stack
still shows
Copy code
Current stack outputs (1):
    OUTPUT  VALUE
    some    value
Pulumi then shows that it's removing the output until: another value is added to the Outputs
Copy code
pulumi.export('another', 'value')
Then
pulumi up -y
Copy code
Outputs:
  + another: "value"
  - some   : "value"
Then:
pulumi stack
Copy code
Current stack outputs (1):
    OUTPUT   VALUE
    another  value
Note: As long as there is at least one output, removing it works as expected. The described scenario above happens if there is only 1 output in the stack to be removed.