3 hours ago
Hello Railway team,
We have an offline Railway service with all previous deployments removed.
There is an existing staged change containing only the deletion of two S3 credential environment variable references.
We need to permanently remove these references from the service configuration without starting any new deployment.
The Railway dashboard indicates that applying the staged changes will redeploy the service.
We also checked Railway CLI v5.75.0 and found no verified way to delete these variables without triggering a deployment.
Could you please clarify:
- Does Railway support applying variable deletions to an offline service without triggering a deployment?
- Can an existing staged patch containing only variable deletions be committed independently of a deployment?
- Is there an officially supported method that guarantees no new deployment, replacement replica, or container image resolution?
- Can this operation preserve the existing service, attached volume, and storage bucket?
- What evidence or API response can confirm that the variables have been removed from the effective service configuration?
We are requesting technical guidance only.
This post does not authorize Railway staff to modify our project, deploy services, rotate credentials, or delete resources.
We can provide specific project identifiers through an authenticated private support channel if required.
Thank you.
1 Reply
3 hours ago
Yes, staged changes can be committed without triggering a redeploy. In the dashboard, hold the Alt key while clicking Deploy on the staged-changes banner (or press Alt+Shift+Enter), which commits the changes without deploying the affected services, as described in our staged changes docs and keyboard shortcuts. Before committing, open Details on the banner to confirm the changeset contains only the two variable deletions, since a commit applies the whole environment's staged changeset.
Through the public API, the alternative is to delete each variable directly with the variableDelete mutation from Manage Variables. That page documents skipDeploys on the upsert mutations but not on variableDelete, so the Alt-commit path is the one documented as skipping deploys.
To confirm the result, query variables(projectId, environmentId, serviceId) (add unrendered: true to see references as written) and check the two names are absent, and query environmentStagedChanges(environmentId) to confirm nothing remains staged, per Manage Environments. You can also check the service's Deployments tab to confirm no new deployment appeared.
The commit applies only what is in the changeset, so a changeset limited to two variable deletions contains no change to the service, volume, or bucket. If you need certainty about this particular service before relying on it, test the same flow on a disposable service with a similar setup first.
Status changed to Awaiting User Response Railway • about 3 hours ago