---
title: "Remove a profile field from a user."
method: DELETE
path: "/_matrix/client/v3/profile/{userId}/{keyName}"
tags: ["User data"]
---

# Remove a profile field from a user.

`DELETE /_matrix/client/v3/profile/{userId}/{keyName}`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/profile/{userId}/{keyName}`
- Auth: one of:
  - API key in query parameter `access_token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/client/v3/profile/:userId/:keyName/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove a specific field from a user's profile.

## Path parameters

- `userId` string, mx-user-id, required
- `keyName` string, required

## Response `200`

The profile field was deleted or it doesn't exist.

- object

## Other responses

- `400`: The request is malformed, contains invalid JSON, or specifies an invalid key.
- `403`: The user is not authorised to delete this profile field.
- `429`: This request was rate-limited.

---

[API](https://skmtc.dev/matrix/apis/matrix-client-server-api.md) - [All operations](https://skmtc.dev/matrix/apis/matrix-client-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/matrix/apis/matrix-client-server-api/revisions/c7fe4072c681?raw)
