Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -s -X GET "https://api.cloudflare.com/client/v4/zones/<ZONE>/dns_records" \
- -H "Content-Type:application/json" -H "Authorization: Bearer <TOKEN>" \
- | awk -vRS='},{' '{print}' \
- | cut -d'"' -f 4 \
- | xargs -I@ bash -c 'curl -X DELETE "https://api.cloudflare.com/client/v4/zones/<ZONE>/dns_records/@" -H "Content-Type:application/json" -H "Authorization: Bearer <TOKEN>"'
Add Comment
Please, Sign In to add comment