# Clear a person's trait (https://notert.io/docs/api/reference/clear-a-person-s-trait)

`DELETE /api/v1/people/{id}/traits/{key}`

Takes a trait off a member or a contact, as the token's holder, as its X on their page in the app does. It can't be undone here, and the app offers no Undo for it. A key they don't carry, whatever its case, changes nothing, so a call sent again answers as the first did. Someone who isn't the workspace's is NOT_FOUND. Answers every trait they carry now.

Access: A token with people:write.

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The person's id: m_ and a member's user id, or c_ and a contact's id, as the people list answers it. |
| `key` | string | Yes | The trait's name, whatever its case, such as Company or Seats. At least 1 character. At most 40 characters. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The person's id: m_ and a member's user id, or c_ and a contact's id, as the people list answers it. |
| `traits` | object[] | What the team, its scripts or AI clients noted about them, in the order added, each under a key of its own whatever its case. |
| `traits.key` | string | The trait's name. |
| `traits.type` | value | The value's type: text, number, boolean or url. |
| `traits.value` | string or boolean | The trait's value: text, a number as its digits so none is lost, true or false, or a link. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't change your customers' traits or invite teammates. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 404 | `NOT_FOUND` | Not Found. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X DELETE https://app.notert.io/api/v1/people/c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70/traits/Company \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 200

```json
{
  "id": "c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70",
  "traits": [
    "string"
  ]
}
```
