# 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>/xapi/v2/session/<SESSION_GUID>/attendee/<ATTENDANCE_CODE>' \
--header 'Content-Type: application/json'
```

**With USER\_GUID parameter**

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

**With EMAIL parameter**

```bash
curl --location --request DELETE 'https://<DOMAIN>/xapi/v2/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.
