---
title: "Delete Scan"
method: DELETE
path: "/v1/scans/{scan_id}"
tags: ["scans"]
---

# Delete Scan

`DELETE /v1/scans/{scan_id}`

Delete a scan using scanId

## Headers

- `X-Team-Id` string

## Response `200`

Example response

- object
  - `message` string, required
  - `ok` boolean

## Other responses

- `400` — Example response
- `401` — Example response
- `500` — Example response
- `default` — Example response

## Changes

- **2024-09-22** `407b73d9ce28` — 1 info
  - added the new optional `header` request parameter `X-Team-Id`
- **2024-04-19** `ba8a20839440` — 1 breaking, 1 warning, 12 info
  - the `status` response's property type/format changed from `boolean`/`` to `integer`/`` for status `500`
  - removed the optional property `ok` from the response with the `401` status
  - added the non-success response with the status `400`
  - added the optional property `code` to the response with the `401` status
  - …10 more
- **2023-12-06** `35be9c1301b7` — 1 info
  - api tag `scans` added
- **2023-12-05** `5c3748c387f7` — 2 breaking, 12 warning, 3 info
  - the response property `status` became nullable for the status `500`
  - the `status` response's property type/format changed from `integer`/`` to `boolean, null`/`` for status `500`
  - deleted the `header` request parameter `X-Team-Id`
  - removed the optional property `code` from the response with the `401` status
  - …13 more

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/scans/:scan_id/delete.md)

---

[API](https://skmtc.dev/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.dev/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/projectdiscovery/pdcp-api/revisions/220f0adf9efd/schema)
