breezy-kangaroo-6997
11/10/2023, 1:14 PMgentle-application-59272
11/10/2023, 2:58 PMpulumi stack -u > resources.txt
to get everything, then go through & extract out the things that need deletingwhile read resource; do
pulumi state delete --target-dependents "$resource"
done < resources.txt
though do be very careful.
You can add -y
to make it do that automaticallybreezy-kangaroo-6997
11/14/2023, 1:12 PMgentle-application-59272
11/15/2023, 11:51 AMbreezy-kangaroo-6997
11/15/2023, 1:56 PMgentle-application-59272
11/21/2023, 4:56 PMin production if you remove a resource then it will not be replace after ?not if you get rid of the code in the pulumi project too?