---
title: "Delete Custom Section"
method: DELETE
path: "/api/v1/configurations/{configuration_id}/sections"
tags: ["configurations"]
---

# Delete Custom Section

`DELETE /api/v1/configurations/{configuration_id}/sections`

## Request

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

Delete a custom section.

Args:
    configuration_id (UUID): ID of the configuration with custom section to delete
    section_input (DeleteCustomSectionInput): Custom section deletion input
    user (DbUser): The logged in user
    db (AsyncDatabaseConnection): The database connection

Raises:
    HTTPException: 404 if configuration isn't found
    HTTPException: 409 if configuration isn't a draft
    HTTPException: 404 if custom section code to delete isn't found

Returns:
    str: Deleted custom section code

## Path parameters

- `configuration_id` string, uuid, required

## Request body

- DeleteSectionInput: Request body to delete a section.
  - `code` string, required

## Response `200`

Successful Response

- string

## Other responses

- `422`: Validation Error

## Changes

- **2026-03-27** `e6cb18663b25`: 1 info
  - endpoint added

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

---

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