---
title: "🛡️ Delete a logical repository."
method: POST
path: "/settings/logical_repository/delete"
tags: ["settings", "default"]
---

# 🛡️ Delete a logical repository.

`POST /settings/logical_repository/delete`

## Request

- Base URL: `{{ server_url }}/v1`
- URL: `{{ server_url }}/v1/settings/logical_repository/delete`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/athenian/apis/title/docs/settings/logical_repository/delete/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- LogicalRepositoryGetRequest: Pointer to a logical repository.
  - `account` integer, required: Account ID.
  - `name` string, required: Repository name which uniquely identifies any repository in any service provider. The format matches the repository URL without the protocol part. No ".git" should be appended. We support a special syntax for repository sets: "{reposet id}" adds all the repositories from the given set.

## Response `200`

Empty object indicates a successful removal.

- object

## Other responses

- `403`: The user is not an admin of the account.
- `404`: The specified logical repository does not exist.

---

[API](https://skmtc.dev/athenian/apis/title.md) - [All operations](https://skmtc.dev/athenian/apis/title/llms.txt) - [OpenAPI document](https://skmtc.dev/athenian/apis/title/revisions/110c9f7cffdd?raw)
