variable_delete
Removes specific environment variables in Railway services to manage configurations, enhance security, or clean up unused settings. Requires project, environment, and variable details for precise deletion.
Instructions
[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
Name | Required | Description | Default |
---|---|---|---|
environmentId | Yes | ID of the environment to delete the variable from (usually obtained from service_list) | |
name | Yes | Name of the variable to delete | |
projectId | Yes | ID of the project | |
serviceId | No | ID of the service (optional, if omitted deletes a shared variable) |