Mutation
mutation DeleteEnvironmentVariables($input: DeleteEnvironmentVariablesInput!) {
deleteEnvironmentVariables(input: $input) {
variables {
edges {
cursor
node {
__typename
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
totalCount
}
deletedNames
}
}Variables
{
"input": {
"scope": "WORKSPACE",
"names": [
"string"
]
}
}Response
{
"data": {
"deleteEnvironmentVariables": {
"variables": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "EnvironmentVariable"
}
}
],
"pageInfo": {
"startCursor": "string",
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true
},
"totalCount": 1
},
"deletedNames": [
"string"
]
}
}
}deleteEnvironmentVariables
Deletes variables of the workspace or of one of its environments, with the same redeploys as setEnvironmentVariables. Needs env_vars:write.
MUTATION
deleteEnvironmentVariables(input: DeleteEnvironmentVariablesInput!): DeleteEnvironmentVariablesPayload!Arguments
input
required
The variables.
variables
The scope's variables after the deletion.
Arguments
first
Int
default:100
How many to return: 100 by default, at most 500. 0 returns only totalCount.
after
String
The endCursor of the previous page.
deletedNames
[String!]!
The names that existed and were deleted; empty when none did.
Mutation
mutation DeleteEnvironmentVariables($input: DeleteEnvironmentVariablesInput!) {
deleteEnvironmentVariables(input: $input) {
variables {
edges {
cursor
node {
__typename
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
totalCount
}
deletedNames
}
}Variables
{
"input": {
"scope": "WORKSPACE",
"names": [
"string"
]
}
}Response
{
"data": {
"deleteEnvironmentVariables": {
"variables": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "EnvironmentVariable"
}
}
],
"pageInfo": {
"startCursor": "string",
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true
},
"totalCount": 1
},
"deletedNames": [
"string"
]
}
}
}