Uninstall Statamic

Uninstall Statamic on your domain.


DELETE/api/servers/{server}/sites/{id}/statamic

Uninstall Statamic

Removes the Statamic installation from the specified site. The remote repository will remain intact if one was created during installation.

Request

DELETE
/api/servers/{server}/sites/{id}/statamic
curl -X DELETE "https://ploi.io/api/servers/{server}/sites/{id}/statamic" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": {
    "id": 1,
    "status": "statamic-uninstalling",
    "server_id": 1,
    "domain": "example.com",
    "test_domain": null,
    "deploy_script": false,
    "web_directory": "/public",
    "project_type": null,
    "project_root": "/",
    "last_deploy_at": null,
    "system_user": "ploi",
    "php_version": 7.4,
    "health_url": null,
    "has_repository": false,
    "zero_downtime_deployment": false,
    "fastcgi_cache": false,
    "created_at": "2021-01-01 00:00:00"
  },
  "message": "Statamic is being uninstalled"
}