---
title: "Delete a namespace"
method: DELETE
path: "/v2/costformation/namespace/{id}"
tags: ["costformation-namespaces"]
---

# Delete a namespace

`DELETE /v2/costformation/namespace/{id}`

Deletes a specific namespace by its identifier

## Path parameters

- `id` string, required

## Headers

- `cloudzero-idempotency-key` string
- `cloudzero-test-key` string

## Response `200`

Namespace deleted successfully

- object
  - `namespace` object, required
    - `id` string, required — The namespace identifier that was deleted

## Other responses

- `400` — Bad Request Error
- `403` — Forbidden
- `422` — Invalid CloudZero CostFormation Namespace Format Error

---

[API](https://skmtc.dev/cloudzero/apis/cloudzero-api-v2-resources.md) · [All operations](https://skmtc.dev/cloudzero/apis/cloudzero-api-v2-resources/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudzero/cloudzero-api-v2-resources/revisions/fd805a0e75e5/schema)
