---
title: "Delete Users From a Session"
method: DELETE
path: "/v1/session/{session_id}/users"
tags: ["Sessions"]
---

# Delete Users From a Session

`DELETE /v1/session/{session_id}/users`

## Request

- Base URL: `https://api.edgegap.com`
- URL: `https://api.edgegap.com/v1/session/{session_id}/users`
- Auth: API key in header `authorization`

Remove specified users from a session.

## Request body

- PatchSessionModel
  - `ip_list` string[], required: The List of IP of your user, Array of String, example: ["162.254.103.13","198.12.116.39", "162.254.135.39", "162.254.129.34"]

## Response `200`

Success

- SessionUserContext
  - `session_users` SessionUser[], required: Users in the session
    - `ip` string, required: Ip of the user connected to the Session
    - `latitude` number: Latitude
    - `longitude` number: Longitude

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
