---
title: "Remove Condition Codeset From Configuration"
method: DELETE
path: "/api/v1/configurations/{configuration_id}/code-sets/{condition_id}"
tags: ["configurations"]
---

# Remove Condition Codeset From Configuration

`DELETE /api/v1/configurations/{configuration_id}/code-sets/{condition_id}`

## Request

- The document declares no server URL.
- Auth: none declared

Remove a specified code set from the given configuration.

Args:
    configuration_id (UUID): ID of the configuration
    condition_id (UUID): ID of the condition to remove
    user (DbUser): User making the request
    db (AsyncDatabaseConnection): Database connection

Raises:
    HTTPException: 404 if configuration is not found in JD
    HTTPException: 404 if condition is not found
    HTTPException: 409 if trying to remove the main condition
    HTTPException: 409 if configuration is not a draft and therefore not editable
    HTTPException: 500 if configuration is cannot be updated

Returns:
    AssociateCodesetResponse: ID of updated configuration and the full list
    of included conditions plus condition_name

## Path parameters

- `configuration_id` string, uuid, required
- `condition_id` string, uuid, required

## Response `200`

Successful Response

- AssociateCodesetResponse: Response from adding a code set to a config.
  - `id` string, uuid, required
  - `included_conditions` string[], required
  - `condition_name` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-06-01** `808af89fc071`: 2 breaking
  - the `included_conditions/items/` response's property type changed from `object` to `string`, and format from no format to `uuid` for status `200`
  - removed the required property `included_conditions/items/id` from the response with the `200` status

[Operation history](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner-2/changes/api/v1/configurations/:configuration_id/code-sets/:condition_id/delete.md)

---

[API](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner-2.md) - [All operations](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner-2/llms.txt) - [OpenAPI document](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner-2/revisions/fca481966403?raw)
