---
title: "Remove Repository Configuration Overrides"
method: DELETE
path: "/api/v1/git/repositories/{repo_id}/config"
tags: ["Git Repositories"]
---

# Remove Repository Configuration Overrides

`DELETE /api/v1/git/repositories/{repo_id}/config`

## Request

- Base URL: `https://public-api.linearb.io`
- URL: `https://public-api.linearb.io/api/v1/git/repositories/{repo_id}/config`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/linearb/apis/linearb-api/docs/api/v1/git/repositories/:repo_id/config/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes every override of the repository, so it follows the organization default - including any later change to it. Changing excluded branches, excluded base branches, excluded file extensions, release detection or coding time strategy recomputes history asynchronously

## Path parameters

- `repo_id` integer, required: The repository id, as `GET /api/v1/git/repositories` returns it

## Response `200`

Successful Response

- RepositoryConfigResponseModel: A repository's settings, each section marked as inherited (`global`) or overridden (`repository`).
  - `repository_id` integer, required
  - `repository_name` string, nullable
  - `settings` object, required

## Other responses

- `400`: Bad Request - an unknown section, an invalid value or regular expression
- `401`: Unauthorized
- `403`: Forbidden
- `404`: The repository was not found
- `405`: Method Not Allowed
- `409`: Conflict
- `422`: Validation Error
- `500`: Internal Server Error
- `504`: Gateway Timeout

---

[API](https://skmtc.dev/linearb/apis/linearb-api.md) - [All operations](https://skmtc.dev/linearb/apis/linearb-api/llms.txt) - [OpenAPI document](https://skmtc.dev/linearb/apis/linearb-api/revisions/3aea06710db6?raw)
