> ## Documentation Index
> Fetch the complete documentation index at: https://docs.konstantly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unassign User from Course

> Unassign a specific user from a course

Remove a course assignment from a specific user.

## Path Parameters

<ParamField path="courseId" type="integer" required>
  The unique identifier of the course
</ParamField>

<ParamField path="userId" type="string" required>
  The unique identifier of the user to unassign
</ParamField>

## Request Headers

<ParamField header="X-API-KEY" type="string" required>
  API Key. Go to your Konstantly site > Settings > API and copy the value from there.
</ParamField>

## Response

On successful unassignment, returns an empty response with HTTP status code 200.

### Error Responses

<ResponseField name="404" type="object">
  Returned when either the course or user is not found

  <Expandable title="Error object properties">
    <ResponseField name="status" type="integer" required>HTTP status code (404)</ResponseField>
    <ResponseField name="message" type="string" required>Error message</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl --request DELETE \
  --url https://YOURSITE.konstant.ly/openapi/v1/courses/123/assignments/users/1234567890 \
  --header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
      // Empty response on success
  }
  ```

  ```json 404 Not Found theme={null}
  {
      "status": 404,
      "message": "Not found"
  }
  ```
</ResponseExample>
