$API_TOKEN="<API_TOKEN>"$ZONE_ID="<ZONE_ID>"$baseUrl="https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records"$headers=@{'Authorization'="Bearer $API_TOKEN"'Content-Type'="application/json"}$listUrl=$baseUrl+'?per_page=500'Write-Host$listUrl$records=Invoke-RestMethod-Uri$listUrl-Method'GET'-Headers$headers$records=$records|Select-Object-ExpandPropertyresultforeach($recordin$records){Write-Host"Deleting $($record.name) that points to $($record.content)"$deleteUrl=$baseUrl+'/'+$record.idInvoke-RestMethod-Uri$deleteUrl-Method'DELETE'-Headers$headersWrite-Host$deleteUrl}