---
title: "Remove resources from a cost center"
method: DELETE
path: "/enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource"
tags: ["billing"]
---

# Remove resources from a cost center

`DELETE /enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource`

Remove resources from a cost center.

The usage for the resources will no longer be charged to the cost center's budget. Enterprise owners and billing managers can remove any resource. Organization owners can remove non-team resources from cost centers associated with resources they administer.

## Path parameters

- `enterprise` string, required
- `cost_center_id` string, required

## Request body

- object
  - `users` string[] — The usernames of the users to remove from the cost center.
  - `organizations` string[] — The organizations to remove from the cost center.
  - `repositories` string[] — The repositories to remove from the cost center.
  - `enterprise_teams` string[] — The enterprise teams to remove from the cost center.

## Response `200`

Response when removing resources from a cost center

- object
  - `message` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `500` — Internal Error
- `503` — Service unavailable

---

[API](https://skmtc.net/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.net/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/enterprise-cloud/revisions/daeba3129b5f/schema)
