if you also remove your code declaring the resource, it will be as if Pulumi never knew about it
n
nutritious-shampoo-16116
09/21/2020, 10:43 AM
cool, thanks!
l
little-cartoon-10569
09/21/2020, 10:09 PM
If you remove the code declaring the resources without removing it from the state file, won't Pulumi detect the difference and offer to delete it? That's what it does when I try it, and it's what I'd expect it to do.
c
curved-dress-32683
09/22/2020, 1:17 AM
Yes, you are right. The resource has to be deleted first from the state and then from the code.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.