CorefinityCorefinityDocs
Open the Control PanelControl Panel
Create and manage · 7 of 7

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

On this page

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.

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.

    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….

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

  2. Confirm

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

    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

Delete a site

Deletes the row {site} names, once the request carries the typed confirmation that row takes: the body's fields say which.

DELETE/api/corestack/sites/{site}
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"
  }'
Was this helpful?
Open in ClaudeOpen in ChatGPT