Hi guys, I am trying to remove my stack but got th...
# guide
a
Hi guys, I am trying to remove my stack but got this following error:
Copy code
➜  notes git:(main) npx sst remove storage
Using stage: zhuangda
Preparing your SST app
Transpiling source
Linting source
Removing zhuangda-notes-storage
Checking remove status...
zhuangda-notes-storage | DELETE_IN_PROGRESS | AWS::CloudFormation::Stack | zhuangda-notes-storage 
zhuangda-notes-storage | UPDATE_COMPLETE | AWS::CloudFormation::Stack | zhuangda-notes-storage 

 ❌  zhuangda-notes-storage failed: Stack zhuangda-notes-storage failed to destroy: UPDATE_COMPLETE


Stack zhuangda-notes-storage
  Status: failed
  Error: Stack zhuangda-notes-storage failed to destroy: UPDATE_COMPLETE

Failed to remove the app
t
hm I can't see why it failed in this log message
can you check in aws console in the cloudformation UI
see if there are any failed events
a
it says it is in use by other stacks.
maybe I have to delete them in order?
t
Yeah can you try that, it's weird because cdk should know to so that. Is the frontend stack removed from your code?
a
no, it is not. I am trying this `npx sst remove --stage zhuangda`now which seems deleting stacks in order for me
they are all deleted now 🙌
n
That’s something that we have to do as well. We have 3 stacks, a DB/Userpool stack, BE stack, FE stack. We need to create them back to front and destroy them front to back.
I should note that these are all separate apps/packages (so are deployed with separate sst commands).
t
Yeah separate apps makes sense, but if in the same app I'm surprised if CDK isn't doing it for you