---
title: "remove site config from the load balancers · RUAL Documentation"
description: "Remove a live site config and reload nginx, per node. The far side refuses when the remaining set would not validate without it, and archives rather tha…"
canonical: https://docs.rual.nl/block-types/nginx/nginxsite_delete
language: en
---

[Cluster](https://docs.rual.nl/cluster)

[Blocks](https://docs.rual.nl/block-types)

[Interfaces](https://docs.rual.nl/interfaces)

[Blueprints](https://docs.rual.nl/blueprints)

[Tutorials](https://docs.rual.nl/tutorials)

[Home automation](https://docs.rual.nl/home-automation)

[Examples](https://docs.rual.nl/examples)

[Reference](https://docs.rual.nl/reference)

[Architecture](https://docs.rual.nl/architecture)

[Troubleshooting](https://docs.rual.nl/troubleshooting)

Other

# remove site config from the load balancers

This block is part of the [`nginx`](https://docs.rual.nl/block-types/nginx) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Remove a live site config and reload nginx, per node. The far side refuses when the remaining set would not validate without it, and archives rather than destroys.

- flow `flow`

- Site required `value` The site to remove.

- Load balancers required `array` Where to remove. ONE node on a shared-fs fleet; every node on an independent fleet.

- flow `flow`

- Success `condition` True when every target node removed the site.

- Site `value` The site that was removed.

- Results `array` Per node: name, host, ok, output, exit_code.

- Applied count `number` How many nodes removed it.

- Node count `number` How many nodes were asked.

- Error `value` Why the removal was refused or incomplete.

Removes a live site config, per node, through the fleet's validated contract: the far side first proves the REMAINING live set still passes nginx -t without this file (a site another config depends on stays live, with the reason in the per-node output), then archives the file : nothing is destroyed : and reloads. On a shared-filesystem fleet pass exactly one node, same convergence rule as nginxsite_push: the other nodes' watchers pick the removal up within seconds. On an independent fleet, list every node.

| `remove nginx site` |
| --- |
| `delete site config` |

A typical wiring for [remove site config from the load balancers](https://docs.rual.nl/block-types/nginx/nginxsite_delete): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `site` pin; [with values](https://docs.rual.nl/block-types/array/array_of_values) feeds the `nodes` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%2520ui/state_debug).

[![Studio canvas example for the remove site config from the load balancers block: typical wiring for remove site config from the load balancers.](https://docs.rual.nl/canvas-examples/nginxsite_delete.png)](https://docs.rual.nl/canvas-examples/nginxsite_delete.png?v=3)

## Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

- [Back to `nginx`](https://docs.rual.nl/block-types/nginx): Return to the main group to view all sub-groups

- [Back to `Load balancers`](https://docs.rual.nl/block-types/nginx?group=Load%20balancers): Return to the group to view all blocks within this group

Was this page helpful? [Tell us what to improve](https://docs.rual.nl/support) · RUAL Docs is an integral component of the [RUAL ecosystem](https://rual.nl)
