delete/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}

Remove a custom environment

Optional params

fetch-request

1
await 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": true
4
},
5
"headers": {
6
"Authorization": "Bearer <TOKEN>"
7
},
8
"method": "delete"
9
})
Path ParameterDescription

environmentSlugOrId

string

required
The unique custom environment identifier within the project

idOrName

string

required
The unique project identifier or the project name
  • object
CodeDescription
200
400
  • One of the provided values in the request body is invalid.

  • One of the provided values in the request query is invalid.

401
403You do not have permission to access this resource.
Last updated on January 16, 2025