---
title: "Delete an unused Resource Account."
method: DELETE
path: "/orgs/{orgId}/resources/accounts/{accId}"
tags: ["public", "ResourceAccount"]
---

# Delete an unused Resource Account.

`DELETE /orgs/{orgId}/resources/accounts/{accId}`

A Resource Account can be deleted if it is not referenced or referenced only by deleted Resource Definitions.
Resource Definition Versions which reference the deleted Resource Account cannot be used in deployments.

## Path parameters

- `orgId` string, required
- `accId` string, required

## Response `204`

The account was successfully deleted.

## Other responses

- `400` — The Resource Account cannot be deleted as at least one non-deleted Resource Definition or one Active Resource still referencing it. In the error the coordinates of the referencing resources are provided.
- `404` — A Resource Account with the 'accId' ID is not found or does not belong to the organization.
- `500` — Internal application error.

---

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