Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

dev: Fix deletion step and add a user confirmation

Clémence Lesné4a11ca72d600
diff --git a/Makefile b/Makefile
index f19d7c7..f21558b 100644
--- a/Makefile
+++ b/Makefile
@@ -134,6 +134,13 @@ deploy:
$(MAKE) logs name=$(name)
destroy:
+ @echo "🧐 Are you sure you want to delete? Type 'delete now $(name)' to confirm."
+ @read -r confirm && [ "$$confirm" = "delete now $(name)" ] || (echo "Confirmation failed. Aborting."; exit 1)
+
+ @echo "❗️ Deleting RG..."
+ az group delete --name $(name) --yes --no-wait
+
+ @echo "❗️ Deleting deployment..."
az deployment sub delete --name $(name)
logs: