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.