---
title: "Delete Resource"
method: DELETE
path: "/v2/schema/{proj_id}/{env_id}/resources/{resource_id}"
tags: ["Resources"]
---

# Delete Resource

`DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}`

Deletes the resource and all its related data.

## Path parameters

- `resource_id` string, required — Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug").
- `proj_id` string, required — Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `env_id` string, required — Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/permit/apis/permit-io-api.md) · [All operations](https://skmtc.dev/permit/apis/permit-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/permit/permit-io-api/revisions/13faa12b4692/schema)
