---
title: "Disconnecting a site"
url: https://wpforeman.com/docs/disconnecting/
description: "Disconnect from WordPress, reconnect a site that moved host or domain, or remove a site from WP Foreman."
updated: 2026-10-31
---

# Disconnecting a site

## Disconnect

1. In the site’s WordPress admin, go to **Settings › WP Foreman**.
2. Click **Disconnect**.

WP Foreman marks the site as disconnected straight away and stops scheduled backups and refreshes. Backups already taken are kept; disconnecting doesn’t delete any.

Deactivating or deleting the plugin also cuts the connection, but WP Foreman isn’t told, so refreshes and backups for that site will fail until you reconnect it. Use **Disconnect** first if you can.

## Reconnect (after a move, a restore or a reinstall)

Reconnect a site when you’ve moved it to a new host or domain, restored it with another backup tool, reinstalled the WP Foreman plugin, or disconnected it. The site keeps its backups, history and settings in WP Foreman.

1. **New domain?** Open the site’s **Site settings** in WP Foreman, change **Address** and click **Save**. A connection key only works on the address it was made for.
2. On the same page, under **Reconnect this site**, click **Get a new connection key** and copy it. It’s shown once and works for 24 hours. (On a site that shows as not connected, the button is on its Overview too.)
3. On the website, go to **Settings › WP Foreman**. If it says it’s connected (the setting came across with the move), click **Disconnect** first.
4. Paste the key and click **Connect**.

Until the new key is used, WP Foreman keeps using the old connection, so getting a key never cuts a working site off. The site’s log notes the new key and the reconnection.

Moved it with WP Foreman’s own [clone or migrate](https://wpforeman.com/docs/clone-or-migrate/)? The copy is connected for you; there’s nothing to do.

## Remove a site completely

1. Open the site and choose **Site settings** in its menu.
2. Under **Remove this site**, type the site’s name and click **Remove site**.

The site disappears from WP Foreman straight away and stops being backed up, checked and updated. If your account has a site limit, the slot is free again. Wait for any running backup, restore or update to finish first.

- **Changed your mind?** Removed sites are listed under **Recently removed** at the bottom of the Sites page for 30 days. Click **Bring back** to restore it with its history, settings and backups.
- **After 30 days** the site is deleted for good, along with its backups on WP Foreman’s storage. Backups in [your own storage](https://wpforeman.com/docs/storage-options/) stay there.
- You can then delete the WP Foreman plugin from the WordPress site. See [Removing the WP Foreman plugin](https://wpforeman.com/docs/removing-the-plugin/).

API: `DELETE /sites/{id}`.

---

WP Foreman: WordPress site management for agencies and freelancers. First site free, no card: https://app.wpforeman.com/signup
