# Remove Student from Section

**Endpoint:**

```
DELETE /v1/student/section/remove
```

**Description:** This endpoint removes a student from a specified section within a school. It requires a JSON payload with the necessary details for the removal.

**Headers:**

| Name          | Value                   |
| ------------- | ----------------------- |
| Content-Type  | application/json        |
| Authorization | Bearer \<access\_token> |

**Request Body:**

```json
{
    "section_id": "string",
    "student_id": "number",
    "school_slug": "string"
}
```

**Request Body Details:**

| Field        | Type   | Description                                            | Required |
| ------------ | ------ | ------------------------------------------------------ | -------- |
| section\_id  | string | The ID of the section from which to remove the student | Yes      |
| student\_id  | number | The ID of the student to be removed                    | Yes      |
| school\_slug | string | The slug of the school                                 | Yes      |

**Response:**

{% tabs %}
{% tab title="200" %}

```json
```

{% endtab %}

{% tab title="400" %}

```json
{
  "message": "string",
  "error": "string",
  "statusCode": "number"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dugsi-docs.tiigsi.io/student-endpoints/remove-student-from-section.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
