---
title: "Remove a repository"
method: POST
path: "/api/v2/repositories/delete"
tags: ["Repositories"]
---

# Remove a repository

`POST /api/v2/repositories/delete`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/repositories/delete`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Remove a repository from ZeroPath. This deletes the repository record and all associated scan data from ZeroPath. It does NOT delete the repository from the VCS provider (GitHub, GitLab, etc.).

## Request body

- RepositoriesDeleteRequest: Remove a repository from the organization. This does not delete the repository from the VCS provider.
  - `organizationId` string: Organization that owns the repository.
  - `repositoryId` string, required: ID of the repository to remove.

## Response `200`

Successfully removed repository

- RepositoriesDeleteResponse
  - `deleted` boolean, required

---

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