From 84b1aa00d482351eee3d1e932c5fb60447ca6b87 Mon Sep 17 00:00:00 2001 From: Aljaz Ceru Date: Thu, 27 Feb 2025 07:14:32 -0600 Subject: [PATCH] cleanup docs --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bcca3c..4972b99 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ aws cloudformation describe-stacks --stack-name breez-integration --query Stacks ``` * Retrieve the API endpoints: ``` -aws cloudformation describe-stacks --stack-name breez-integration --query Stacks[0].Outputs +aws cloudformation describe-stacks --stack-name breez-integration --query 'Stacks[0].Outputs' ``` Output should look like this: ``` @@ -136,3 +136,21 @@ For example, for the *list_payments* endpoint, run: ``` curl -X POST "/list_payments" -H "Content-Type: application/json" -H "x-api-key: " -d '{}' ``` + +### Cleanup +To remove the stack you deployed you need to run the command delete-stack. This command starts the process to delete the stack, but it takes a while. +``` +aws cloudformation delete-stack --stack-name breez-integration +``` +You can use the same status command to see if its been successfully deleted: +``` +aws cloudformation describe-stacks --stack-name breez-integration --query Stacks[0].StackStatus +``` + +You should also cleanup the parameters: +``` +aws ssm delete-parameter --name "/breez-nodeless/api_key" +aws ssm delete-parameter --name "/breez-nodeless/seed_phrase" +aws ssm delete-parameter --name "/breez-nodeless/api_secret" + +``` \ No newline at end of file