https://pulumi.com logo
#automation-api
Title
# automation-api
l

lemon-dog-29241

08/08/2021, 5:09 PM
Hey there! 🙂 I have a pulumi program that saves it's state to an S3 bucket. Everytime I run pulumi destroy, I get the message about needing to remove the configuration files. Via the cli, I know how to do this. Is there a way to force that to happen with the automation API? I know I can just go delete the files / folder from S3, but I want to confirm there isn't an easier way first. Thanks!
l

lemon-agent-27707

08/09/2021, 4:23 PM
there is a
remove_stack
api that is equivalent to`
pulumi stack rm
This unit test has an example: https://github.com/pulumi/pulumi/blob/d6b776210233f318075339eb7e40db7b60ec9113/sdk/python/lib/test/automation/test_local_workspace.py#L224
🙏 1