---
title: "Delete Policy Repo"
method: DELETE
path: "/v2/projects/{proj_id}/repos/{repo_id}"
tags: ["Policy Git Repositories"]
---

# Delete Policy Repo

`DELETE /v2/projects/{proj_id}/repos/{repo_id}`

Deletes an environment and all its related data.

## Path parameters

- `proj_id` string, required — Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `repo_id` string, required — Either the unique id of the policy repo, or the URL-friendly key of the policy repo (i.e: the "slug").

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/permit/apis/permit-io-api.md) · [All operations](https://skmtc.net/permit/apis/permit-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/permit/permit-io-api/versions/dd6be355a62e/schema)
