---
title: "Delete CDN resource"
method: DELETE
path: "/cdn/resources/{resource_id}"
tags: ["CDN resources"]
---

# Delete CDN resource

`DELETE /cdn/resources/{resource_id}`

Delete the CDN resource from the system permanently.

Notes:
- **Deactivation Requirement**: Set the `active` attribute to `false` before deletion.
- **Statistics Availability**: Statistics will be available for **365 days** after deletion through the [statistics endpoints](/docs/api-reference/cdn/cdn-statistics/cdn-resource-statistics).
- **Irreversibility**: This action is irreversible. Once deleted, the CDN resource cannot be recovered.

## Path parameters

- `resource_id` integer, required

## Response `204`

Successful

## Other responses

- `400` — Failed to delete the CDN resource.
- `404` — The specified CDN resource is not found in the current account.

---

[API](https://skmtc.net/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.net/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/versions/09e652815095/schema)
