---
title: "Discard a pentest that has not started"
method: DELETE
path: "/pentests/{id}"
tags: ["REST API - Pentests"]
---

# Discard a pentest that has not started

`DELETE /pentests/{id}`

## Request

- Base URL: `https://api.hacktron.ai/v1`
- URL: `https://api.hacktron.ai/v1/pentests/{id}`
- Auth: API key in header `X-Api-Key`

## Path parameters

- `id` string, required

## Response `200`

- RestDiscardPentestResponseDto
  - `scan_id` string, uuid, required
  - `discarded` boolean, required

## Changes

- **2026-11-03** `48b2f95b2320`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hacktron/apis/hacktron-rest-api/changes/pentests/:id/delete.md)

---

[API](https://skmtc.dev/hacktron/apis/hacktron-rest-api.md) - [All operations](https://skmtc.dev/hacktron/apis/hacktron-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hacktron/apis/hacktron-rest-api/revisions/48b2f95b2320?raw)
