---
title: "Delete a code security configuration for an enterprise"
method: DELETE
path: "/enterprises/{enterprise}/code-security/configurations/{configuration_id}"
tags: ["code-security"]
---

# Delete a code security configuration for an enterprise

`DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}`

Deletes a code security configuration from an enterprise.
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 for the enterprise to use this endpoint.

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

## Path parameters

- `enterprise` 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/github-v3-rest-api.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api/versions/a367f7028301/schema)
