Projects

Delete a project (confirm with its exact name); its previews go with it and one backup copy is kept 30 days for disaster recovery

Removes the previews of the project and releases its domains. A one-click app, WordPress site or app with volumes is stopped at once (its site goes offline) and its data is copied into the single backup copy before the server deletes it. Databases attached to the project stay (detached) unless deleteDatabases lists them. See GET /projects/{projectId}/deletion-impact for what this project would lose.

delete/projects/{projectId}

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b

Request body

confirmstring required

must equal the project name

deleteDatabasesstring[]

ids of databases attached to this project that are deleted together with it (their data and their backups are lost for good; needs databases:write). Databases that are not listed stay, detached from the project, and keep running.

Response

Deleted

deletedtrue required
previewsRemovedinteger

Changes

No recorded changes to this operation across all 1 revision of this API.