Delete session PII
DELETE/api/v1/:environment/sessions/:sessionId
Permanently deletes the PII data blocks belonging to a specific session, ahead of the automated retention period. Only the session's PII data blocks are removed — the session record and its non-PII metadata remain intact and queryable. This is a distinct, on-demand mechanism separate from Studio's manual deletion feature, though both share the same underlying deletion logic. This endpoint is idempotent: if the session's PII was already deleted, the original deletion result is returned rather than an error.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Session's PII successfully deleted
Bad Request
Unauthorized - Invalid or missing Bearer token
Forbidden - Token does not have required permissions
Session not found
Session is still in progress and cannot be deleted yet
Internal server error