railway-mcp

by jason-tan-swe
Verified

variable_delete

[API] Delete a variable for a service in a specific environment

⚡️ Best for: ✓ Removing unused configuration ✓ Security cleanup ✓ Configuration management

⚠️ Not for: × Temporary variable disabling × Bulk variable removal

→ Prerequisites: service_list

→ Next steps: deployment_trigger, service_restart

→ Related: variable_list, variable_set

Input Schema

NameRequiredDescriptionDefault
environmentIdYesID of the environment to delete the variable from (usually obtained from service_list)
nameYesName of the variable to delete
projectIdYesID of the project
serviceIdNoID of the service (optional, if omitted deletes a shared variable)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "environmentId": { "description": "ID of the environment to delete the variable from (usually obtained from service_list)", "type": "string" }, "name": { "description": "Name of the variable to delete", "type": "string" }, "projectId": { "description": "ID of the project", "type": "string" }, "serviceId": { "description": "ID of the service (optional, if omitted deletes a shared variable)", "type": "string" } }, "required": [ "projectId", "environmentId", "name" ], "type": "object" }