Delete an Application Environment Variable
curl --request DELETE \
--url https://api.vertracloud.app/v1/apps/{id}/envs/{envId}import requests
url = "https://api.vertracloud.app/v1/apps/{id}/envs/{envId}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.vertracloud.app/v1/apps/{id}/envs/{envId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/apps/{id}/envs/{envId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/apps/{id}/envs/{envId}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.vertracloud.app/v1/apps/{id}/envs/{envId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/apps/{id}/envs/{envId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"code": "<string>"
}Environments
Delete an Application Environment Variable
Deletes one environment variable of an application by the variable’s ID.
DELETE
/
v1
/
apps
/
{id}
/
envs
/
{envId}
Delete an Application Environment Variable
curl --request DELETE \
--url https://api.vertracloud.app/v1/apps/{id}/envs/{envId}import requests
url = "https://api.vertracloud.app/v1/apps/{id}/envs/{envId}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.vertracloud.app/v1/apps/{id}/envs/{envId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/apps/{id}/envs/{envId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/apps/{id}/envs/{envId}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.vertracloud.app/v1/apps/{id}/envs/{envId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/apps/{id}/envs/{envId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"code": "<string>"
}string
required
The ID of the application.
string
If the application belongs to a workspace, the workspace’s ID. Required for workspace members acting on an application they don’t own.
string
required
The ID of the environment variable, as returned by
List Environment Variables. There is no request body.
Response
A success returns200 with { "response": null }. The variable is removed from the application’s
configuration; restart the application for the running process to stop seeing it.
Response
{
"response": null
}
Error Responses
string
APP_NOT_FOUND: The application does not exist (404).ACCESS_DENIED: Your account can’t act on this application (403).ENV_NOT_FOUND: No variable with that ID on this application (404).