Reference
delete/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}
Remove a custom environment
Optional params
fetch-request
1await fetch("https://api.vercel.com/v9/projects/SOME_STRING_VALUE/custom-environments/SOME_STRING_VALUE?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "deleteUnassignedEnvironmentVariables": true4 },5 "headers": {6 "Authorization": "Bearer <TOKEN>"7 },8 "method": "delete"9})
Path Parameter | Description |
---|---|
environmentSlugOrId | string requiredThe unique custom environment identifier within the project |
idOrName | string requiredThe unique project identifier or the project name |
object
Code | Description |
---|---|
200 | |
400 |
|
401 | |
403 | You do not have permission to access this resource. |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v9/projects/SOME_STRING_VALUE/custom-environments/SOME_STRING_VALUE?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "deleteUnassignedEnvironmentVariables": true4 },5 "headers": {6 "Authorization": "Bearer <TOKEN>"7 },8 "method": "delete"9})
Last updated on January 15, 2025
Was this helpful?