---
title: "/codes"
method: DELETE
path: "/codes"
---

# /codes

`DELETE /codes`

## Request

- Base URL: `https://api.securevan.com/v4`
- URL: `https://api.securevan.com/v4/codes`
- Auth: HTTP basic

Use this endpoint to delete a list of existing Codes. Use with caution as this this action is *irreversible*.

Codes can only be deleted if they are not applied to any Entity in any context in which the Code exists. *NB*: you may not have access to every context in which the Code exists.


The endpoint responds with HTTP Status Code `200 OK` and an array of results, one for each code deleted or attempted. Each object will contain the ID of the Code, if successfully updated, and any warning or error messages for that Code.

## Request body

- object
  - `codeIds` integer[]: Accepts a comma-separated array of codeIds

## Response `200`

200

- object[]
  - `1020112` string

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `4f2049fba5af`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ngpvan/apis/van-crm/changes/codes/delete.md)

---

[API](https://skmtc.dev/ngpvan/apis/van-crm.md) - [All operations](https://skmtc.dev/ngpvan/apis/van-crm/llms.txt) - [OpenAPI document](https://skmtc.dev/ngpvan/apis/van-crm/revisions/4f2049fba5af?raw)
