SigSentrySigSentry
Projects

DELETE /v1/config/projects/{id}

Permanently delete a project and everything inside it

Permanently deletes a project, along with its log sources, repos, channels, analyses, follow-ups, feedback, postmortems, watchdog rules, API keys, and access list.

This is irreversible. There's no recovery from a delete. The default project cannot be deleted; every tenant must keep one project to receive new analyses.

Authentication

API key with config:write permission.

Endpoint

DELETE /v1/config/projects/{id}

Path parameters

ParamTypeNotes
idUUIDThe project id

Request body

{
  "confirm": "<exact-project-slug>"
}
FieldTypeRequiredNotes
confirmstringyesMust match the target project's slug exactly. The API rejects empty or non-matching values with 400 CONFIRMATION_MISMATCH.

The confirmation gate prevents accidental deletes from a leaked or miscopied key. Legitimate IaC tear-down still works — Terraform already has the slug it provisioned with.

Response

200 OK

{
  "success": true,
  "data": {
    "deleted": true
  }
}

Error responses

Statuserror.codeWhen
400VALIDATION_ERRORid is not a valid UUID
400CONFIRMATION_MISMATCHBody missing confirm, or confirm doesn't match the project's slug
400CANNOT_DELETE_DEFAULTThe target project is the tenant's default project
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENKey lacks config:write
404NOT_FOUNDNo project with that id in your tenant

Example

curl -X DELETE https://api.sigsentry.com/v1/config/projects/6f1c89bb-3b50-4c4a-9c5f \
  -H "Authorization: Bearer ss_secret_..." \
  -H "Content-Type: application/json" \
  -d '{ "confirm": "checkout-prod" }'

What gets deleted

Deleting a project removes all of its scoped resources:

  • Log sources, repos, and notification channels
  • Analyses, follow-ups, feedback, and postmortems
  • Watchdog rules
  • API keys scoped to this project
  • The project's access list

Tenant-scoped resources (tenant-wide API keys, billing, members) are unaffected.

See also

  • Errors — error code reference