---
title: "Delete a unit cost"
method: DELETE
path: "/api/v2/cost/unit_costs/{unit_cost_id}"
tags: ["Cloud Cost Management"]
---

# Delete a unit cost

`DELETE /api/v2/cost/unit_costs/{unit_cost_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/cost/unit_costs/{unit_cost_id}`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/cost/unit_costs/:unit_cost_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete an ROI metric (unit cost).

## Path parameters

- `unit_cost_id` string, uuid, required

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
