Delete an environment
curl --request DELETE \
--url https://go-fetch.io/api/v1/organizations/{id}/environments/{env_id}/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://go-fetch.io/api/v1/organizations/{id}/environments/{env_id}/"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://go-fetch.io/api/v1/organizations/{id}/environments/{env_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Organizations
Delete an environment
Its API keys, jobs and usage move to the default environment, which itself cannot be deleted. Needs a key with the admin scope.
DELETE
/
api
/
v1
/
organizations
/
{id}
/
environments
/
{env_id}
/
Delete an environment
curl --request DELETE \
--url https://go-fetch.io/api/v1/organizations/{id}/environments/{env_id}/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://go-fetch.io/api/v1/organizations/{id}/environments/{env_id}/"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://go-fetch.io/api/v1/organizations/{id}/environments/{env_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));