---
title: "Profile Delete Request"
method: DELETE
path: "/api/entity/{table}/{fieldname}/{fieldval}"
tags: ["Personalization"]
---

# Profile Delete Request

`DELETE /api/entity/{table}/{fieldname}/{fieldval}`

## Request

- Base URL: `https://api.lytics.io`
- URL: `https://api.lytics.io/api/entity/{table}/{fieldname}/{fieldval}`
- Auth: API key in header `Authorization`

Deletes a single Entity (normally a user).

This API persists a deletion event for the particular profile provided. This operation is asynchronous; it will take
some time for the profile to be removed from downstream databases and indexes. This request returns a "request_id"
which may be used to determine the status of that deletion. While the profile may become unavailable quickly, it may
take a while for the full process to complete since it includes all archived historic data.

```
# Delete user whose "user_id" = "userdeleteme12"
# user_id can be any by-field

curl -s -H "Authorization: $LIOKEY" \
  -XDELETE "https://api.lytics.io/api/entity/user/user_id/userdeleteme12" | jq '.'


```

**Use Cases**

* *GDPR* right to be forgotten, a user asks for profile to be deleted.

## Path parameters

- `table` string, required
- `fieldname` string, required
- `fieldval` string, required

## Query parameters

- `account_id` string

## Response `200`

OK

- ProfileDeletionModel
  - `status` number
  - `message` string
  - `data` object
    - `request_id` string
    - `complete` boolean

---

[API](https://skmtc.dev/lytics/apis/v1-lytics-api.md) - [All operations](https://skmtc.dev/lytics/apis/v1-lytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lytics/apis/v1-lytics-api/revisions/339fd1d88486?raw)
