---
title: "Delete a site"
url: https://docs.corefinity.com/guides/sites/create-and-manage/delete-a-site
type: guide
last_updated: 2026-11-13
feature: site-delete
---
# Delete a site

Delete a site or one of its environments, and know what is kept and for how long.

## Before you start

- You can open the site in **Managed Websites**. Anyone who can open a site can delete it.
- A site with more than one environment cannot be deleted: delete its other environments first.
- If another site should take over the domain, point its DNS there first: see [Check and point DNS](/guides/sites/go-live/check-and-point-dns).

## Delete an environment

1. **Open the environment**

   Go to **Managed Websites**, choose the site, then the environment, such as **Staging**, in the site header. Open the **…** menu at the top right and choose **Delete environment…**.

2. **Confirm**

   Type the environment's name, then choose **Delete** and the name.

   _Screenshot: The dialog Delete Staging: the environment's files, database, hostname and SSH port are removed now, its final snapshot can be restored until a date, and a box to type Staging._

   > **Warning:** The environment's files, database, hostname and SSH port are removed at once.

## Delete the site

1. **Choose Delete site…**

   Open the site's **Production** environment, open the **…** menu at the top right and choose **Delete site…**.

   _Screenshot: A site page with the More actions menu open and Delete site… ringed at the foot of the menu._

   While the site has another environment, the item is greyed out and says why.

   _Screenshot: The More actions menu of a site with a staging environment: Delete site… is greyed out, with the line This site still has 1 environment. Delete it first, then delete the site._

2. **Confirm**

   Type the site's domain, then choose **Delete** and the domain.

   _Screenshot: The Delete dialog: the site stops now and its files, database and a final protected snapshot are kept for 7 days; a list of what is gone after 7 days; and a box to type the domain._

   > **Warning:** Visitors get an error from the moment the site stops. After 7 days its files, database, platform address, SSH port and every SSH and SFTP user are gone for good.

The site stops and leaves your lists. Its files and database are kept for 7 days, with a final backup when backups are on for the site: to bring it back, see Restore a deleted site.

## Automate this

**API:** [Delete a site](https://docs.corefinity.com/api/reference/sites/delete-site.md), scope `destructive`

```bash
curl -X DELETE https://manage.corefinity.com/api/corestack/sites/1042 \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "confirm_name": "Staging"
  }'
```

**MCP:** [`corestack_site_delete`](https://docs.corefinity.com/mcp/tools/corestack_site_delete.md), scope `destructive`

```json
{
  "name": "corestack_site_delete",
  "arguments": {
    "site_id": 4211,
    "confirm_domain": "example.co.uk"
  }
}
```

**Control Panel:** Managed Websites › your site › Overview ([https://manage.corefinity.com/go/sites](https://manage.corefinity.com/go/sites))

## Related

&#xA;- [Backups](/guides/sites/backups/snapshots): Take a backup before a change.
- [Check and point DNS](/guides/sites/go-live/check-and-point-dns): Point a hostname at a site.
