script
unanchored
cf-delete-worker
Delete a CF worker by name. Prompts confirmation unless -force.
cloudflareworkersdeletecleanup
Body
param([string]$scriptName="",[string]$token="",[string]$account="269368ec7f35ec20dd0485e72fe3ee56",[switch]$force)\nif(-not $token){$token=$env:CF_API_TOKEN}\nif(-not $scriptName){Write-Error "scriptName required";exit 1}\nif(-not $force){$c=Read-Host "Delete $scriptName? (yes/no)";if($c -ne "yes"){exit 0}}\n$r=(Invoke-WebRequest -Uri "https://api.cloudflare.com/client/v4/accounts/$account/workers/scripts/$scriptName" -Method DELETE -Headers @{"Authorization"="Bearer $token"}).Content|ConvertFrom-Json\nWrite-Output "deleted: $($r.success)"
Provenance
Cryptographic details
| id | reg_cf_worker_delete |
| content sha256 | 8e53a4b2eba60ddd09faa7b4dbfefaf396b4c603ae29939b34cb55fb43b52e3d |
Execute via API
POST /api/execute
{ "ref": "reg_cf_worker_delete" }
// or by hash prefix:
{ "ref": "8e53a4b2eba60ddd" }
Resolves this artifact by hash — deterministic, provenance-proven. Generation cost is zero when the hash exists.