---
title: "Remove attribute"
method: DELETE
path: "/_api/key/{keyid}/attributes/{attributeid}"
tags: ["API Keys"]
---

# Remove attribute

`DELETE /_api/key/{keyid}/attributes/{attributeid}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/key/:keyid/attributes/:attributeid/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove the attribute from *keyid*.

## Path parameters

- `keyid` string, string, required
- `attributeid` string, string, required

## Response `202`

Successfully removed attribute.

- ApiKeyHttpExamplesRc202
  - `code` integer: HTTP response code.
  - `error` boolean, required: Flag if there is an error in response. *False* for this response.

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `404`: Failed to find specified API key.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
