All Products
Search
Document Center

Edge Security Acceleration:DeleteRoutineEnvironmentVariables

Last Updated:Aug 18, 2026

Deletes environment variables of a Routine.

Operation description

Operation description

  • When you create a Routine code version for deployment, the environment name Env supports only the staging environment staging or the production environment production.

  • The CodeVersions parameter supports canary release of up to two versions, and the total proportion of these versions must equal 100%.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Name

string

Yes

The name of the Routine function.

my-routine

Env

string

Yes

The environment name.

Valid values:

  • staging: staging environment

  • production: production environment

Valid values:

  • production :

    production

  • staging :

    staging

production

EnvironmentVariableKeys

array

Yes

The list of environment variable keys to delete.

["LOG_LEVEL"]

string

No

The environment variable value.

"LOG_LEVEL"

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

36af3fcc-43d0-441c-86b1-428951dc8225

DeletedKeys

array

The list of environment variable keys that were deleted successfully.

string

The environment variable key name.

['LOG_LEVEL']

FailedKeys

array

The list of environment variable keys that failed to be deleted.

string

The environment variable key name.

LOG_LEVEL

Examples

Success response

JSON format

{
  "RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
  "DeletedKeys": [
    "['LOG_LEVEL']"
  ],
  "FailedKeys": [
    "LOG_LEVEL"
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InternalException Failed to call the service. Try again later or contact technical support. Failed to call the service. Try again later or contact technical support.
400 InvalidParameter The specified parameter is invalid. The specified parameter is invalid.
400 InternalOperationError Failed to call the service. Try again later or contact technical support. Failed to call the service. Try again later or contact technical support.
400 UserOperationStatusIsLocked You are calling an another routine related api. Please wait for the api finished, and try again later. You are calling an another routine related api. Please wait for the api finished, and try again later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.