---
title: "Remove A Site Variable"
description: "Remove one site variable without starting a deployment."
type: "mcp_operation"
company: "RevCent"
operation_id: "RemoveSiteVariable"
canonical: "https://revcent.com/documentation/markdown/mcp/operation/RemoveSiteVariable.md"
api_schema: "https://revcent.com/documentation/files/api/operation/RemoveSiteVariable.json"
---

# Remove a Site Variable

Remove an environment variable from the site's latest saved settings. No expected version or Secure Form is needed. If the name is already absent, the request succeeds without another change. Requires permission to edit the site.

Site variables configure server-side behavior, such as a service endpoint or an API token. In Node.js, read a saved variable at runtime with `process.env.MY_VARIABLE`. Values are not available during install/build or in browser code. [GetSite](GetSite.md) and [GetSites](GetSites.md) return names and version metadata, never the values.

Supply only the site ID and variable name. Removal uses the latest saved set. Repeating it succeeds if the name is already absent; if the same name has since been recreated, another removal removes its current saved value.

**Saving does not start a deployment or change a running site.** After the save succeeds, push a new commit to `dev` for development or `main` for live. The saved changes take effect only when the new deployment becomes active. Until then, running sites keep their previous values, including a variable that has been removed from saved settings.

Development and live share one saved variable set, but each applies it through its own deployment. A deployment already queued or in progress keeps the version selected for its commit. Save first, then push a new commit; retrying an earlier commit does not pick up later saved changes.

The save response includes the assigned shared-set version and a `variables` array. Each entry has a name, `saved_version`, a `removed` flag, and `environments.dev` / `environments.live` with `applied_version` and `status`. Changing one variable leaves other variables' revisions unchanged. Revision identifiers may have gaps. GetSite/GetSites return the same per-variable metadata, never values.

`applied` means that variable's saved revision is active. `pending` and `pending_removal` require a new deployment; they do not mean a deployment is queued. `not_deployed` means the environment has no active deployment. Historical revisions that cannot be established return null and `unknown` status rather than an invented revision. Removed entries remain visible until both environments confirm absence, then disappear. Recreating a name receives a new revision, distinct from its prior values.


---
Document Parent Directory
* [Operations](https://revcent.com/documentation/markdown/mcp/operation/index.md) - AI/MCP details and overviews for operations available within the RevCent MCP.