With the current implementation I always get a 404 when deleting env-vars. Playing with the API directly, it seems that it requires the ID rather than the key:
$ curl -X DELETE -H 'content-type: application/json' -H "Authorization: bearer XXX" "https://api.vercel.com/v8/projects/prj_12345/env/DELETE_TEST"
{"error":{"code":"NOT_FOUND","message":"The Environment Variable \"DELETE_TEST\" was not found."}}⏎
With the current implementation I always get a 404 when deleting env-vars. Playing with the API directly, it seems that it requires the ID rather than the key:
vs:
Using this locally compiled provider against my terraform project fixes the issue:
I've also bumped the API version to match the example in the Vercel docs.