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.
Delete an environment
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….
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
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.
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
Deletes the row {site} names, once the request carries the typed confirmation that row takes: the body's fields say which.
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"
}'Your assistant calls corestack_site_delete.
{
"name": "corestack_site_delete",
"arguments": {
"site_id": 4211,
"confirm_domain": "example.co.uk"
}
}