Permanently delete an archived project
Destroys the project and every record under it: work, specifications and their revisions, documents, milestones, comments, references, memberships and the project's activity. This cannot be undone.
Two guards. The project must already be archived, so a purge is never the first thing that happens to live data, and confirm must repeat the project's slug, so it cannot be done by sending the wrong id.
The project's own activity goes with it rather than surviving it: a history of work nobody can open any more would be rows pointing at nothing. What survives is one row on the operator trail (admin/audit/list) saying the project was purged, by whom, and how much went with it.
- Scope
- projects:admin:projects:purge Admin-issued keys only.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
| idrequired | string, uuid | |
| confirmrequired | string |
Request body of adminPurgeProject
- idrequired
- Type
- string, uuid
- Description
- confirmrequired
- Type
- string
- Description
Response 200What was destroyed, counted per table
| Field | Type | Description |
|---|---|---|
| datarequired | PurgeResult | |
| idrequired | string, uuid | |
| slugrequired | string | |
| deletedrequired | map of integer | |
| {key} | integer |
Response of adminPurgeProject
- datarequired
- Type
- PurgeResult
- Description
- idrequired
- Type
- string, uuid
- Description
- slugrequired
- Type
- string
- Description
- deletedrequired
- Type
- map of integer
- Description
- {key}
- Type
- integer
- Description
Errors
Each is an RFC 7807 problem document whose type URL is a page in the error reference.
- 400The request did not match the endpoint's schema
- 401Missing credential, or a token this application will not accept
- 403Admitted to Projects, but not permitted this operation
- 404No such record
- 409The record's state does not permit this
Example
curl -X POST https://api.rsx.group/projects/v1/admin/projects/purge \
-H "Authorization: Bearer rsx_live_..." \
-H "Content-Type: application/json" \
-d '{
"id": "0198f3c4-7d2b-7e1f-8a2b-3c4d5e6f7a8b",
"confirm": "rsx-node"
}'{
"data": {
"id": "0198f3c4-7d2b-7e1f-8a2b-3c4d5e6f7a8b",
"slug": "string",
"deleted": {
"work_items": 42,
"specifications": 3,
"activity": 118
}
}
}