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