---
title: "Delete a code security configuration"
method: DELETE
path: "/orgs/{org}/code-security/configurations/{configuration_id}"
tags: ["code-security"]
---

# Delete a code security configuration

`DELETE /orgs/{org}/code-security/configurations/{configuration_id}`

Deletes the desired code security configuration from an organization.
Repositories attached to the configuration will retain their settings but will no longer be associated with
the configuration.

The authenticated user must be an administrator or security manager for the organization to use this endpoint.

OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.

## Path parameters

- `org` string, required
- `configuration_id` integer, required

## Response `204`

A header with no content is returned.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Resource not found
- `409` — Conflict

---

[API](https://skmtc.net/github/apis/api-github-com.md) · [All operations](https://skmtc.net/github/apis/api-github-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/api-github-com/revisions/a367f7028301/schema)
