Skip to main content

Delete assessment source code

DELETE 

/api/v1/assessments/:assessment_id/source

Permanently delete source code and analysis data for an assessment.

Removes object storage archives (uploaded + merged), the static analysis engine the database document (graph data for SAST, Call Graph, Code Explorer), and assessment source-related fields. Findings and reports are preserved. Only allowed on terminal assessments (completed, failed, rejected).

A free scan takes its own branch. The body below deletes the Codeling snapshot, which for a sast-scan IS the deliverable — the only thing that run produced — and it reaches one of the three copies of the source a scan creates, leaving the runner copy and the pinned project revision behind. delete_scan_source_archives inverts both: all three copies go, every result stays.

  • Scope required: assessments:delete + write permission.
  • Rate-limit tier: read/default.
  • Idempotent: a repeat call returns "already deleted".

Request

Responses

Successful Response