Skip to main content
DELETE
Requires version 2.0.1 or later of the Archetype platform.

Overview

This endpoint deletes a session that has ended (completed, failed, or cancelled), with its event log. A session that is still pending or running returns 409. Cancel it first.

Request

string
required
Session ses_ id.

Response

Returns 204 No Content with an empty body on success.

Important Notes

  • A 409 means the session has not ended. Cancel it first.
  • A 403 means you can see the session’s project but cannot modify it.
  • A 404 means the session does not exist, belongs to another organization, or is in a project you cannot see.
  • A deployment can be deleted only once it has no sessions left. See Delete Deployment.