From 2fb369309ebac27299df39afdff2cc165a0dbdd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Ole=20Hu=CC=88bner?= Date: Mon, 3 Feb 2025 10:48:16 +0100 Subject: [PATCH] chore: delete old files from cloudflare --- delete_records.sh | 22 ---------------------- inputs.tf | 0 variables.tf | 0 3 files changed, 22 deletions(-) delete mode 100644 delete_records.sh delete mode 100644 inputs.tf delete mode 100644 variables.tf diff --git a/delete_records.sh b/delete_records.sh deleted file mode 100644 index a3d5ad7..0000000 --- a/delete_records.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -TOKEN="" -ZONE_ID= - -# EMAIL=me@gmail.com -# KEY=11111111111111111111111111 -# Replace with -# -H "X-Auth-Email: ${EMAIL}" \ -# -H "X-Auth-Key: ${KEY}" \ -# for old API keys - - -curl -s -X GET https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records?per_page=500 \ - -H "Authorization: Bearer ${TOKEN}" \ - -H "Content-Type: application/json" | jq .result[].id | tr -d '"' | ( - while read id; do - curl -s -X DELETE https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records/${id} \ - -H "Authorization: Bearer ${TOKEN}" \ - -H "Content-Type: application/json" - done - ) diff --git a/inputs.tf b/inputs.tf deleted file mode 100644 index e69de29..0000000 diff --git a/variables.tf b/variables.tf deleted file mode 100644 index e69de29..0000000