> For the complete documentation index, see [llms.txt](https://developer.perculus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.perculus.com/v2-en/services/attendee-management/attandee-delete.md).

# Deleting an Attendee

There are three ways to remove an attendee from a session:

{% tabs %}
{% tab title="CURL" %}
**With ATTENDANCE\_CODE parameter**

```bash
curl --location --request DELETE 'https://<DOMAIN>/api/groups/xapi/session/<SESSION_GUID>/attendee/<ATTENDANCE_CODE>' \
--header 'Content-Type: application/json'
```

**With USER\_GUID parameter**

```bash
curl --location --request DELETE 'https://<DOMAIN>/api/groups/xapi/session/<SESSION_GUID>/attendee/<USER_GUID>' \
--header 'Content-Type: application/json'
```

**With EMAIL parameter**

```bash
curl --location --request DELETE 'https://<DOMAIN>/api/groups/xapi/session/<SESSION_GUID>/attendee/<EMAIL>' \
--header 'Content-Type: application/json'
```

{% endtab %}

{% tab title="Python" %}
**With ATTENDANCE\_CODE parameter**

```javascript
client.attendees.delete_by_attendance_code("<SESSION_GUID>", "<ATTENDANCE_CODE>");
```

**With USER\_GUID parameter**

```javascript
client.attendees.delete_by_user_id("<SESSION_GUID>", "<USER_GUID>");
```

**With EMAIL parameter**

```javascript
client.attendees.delete_by_email("<SESSION_GUID>", "<USER_EMAIL>");
```

{% endtab %}
{% endtabs %}

**Example Response:**

A successful delete operation will return `204 No Content` without any body.
