---
title: "Remove a user from a shared vehicle"
method: DELETE
path: "/api/v1/vehicles/{vehicleId}/users/{userId}"
tags: ["Vehicles"]
---

# Remove a user from a shared vehicle

`DELETE /api/v1/vehicles/{vehicleId}/users/{userId}`

Required scope: `vehicles:write`. Stops sharing the vehicle with the given user. Removing the current owner also clears ownership. Idempotent.

## Path parameters

- `vehicleId` integer, required
- `userId` integer, required

## Query parameters

- `page` integer
- `perPage` integer

## Response `200`

Updated list of users the vehicle is shared with

- OffsetBasedResponse44
  - `data` VehicleUser[], required
    - `id` integer — Id of the user the vehicle is shared with
    - `owner` boolean — Whether this user is the owner of the vehicle
    - `name` string, nullable — Display name of the user
    - `profileImageUrl` string, nullable — Profile image URL of the user
  - `meta` MontaPageMeta, required
    - `itemCount` integer, required
    - `currentPage` integer, required
    - `perPage` integer, required
    - `totalPageCount` integer, required
    - `totalItemCount` integer, required

## Other responses

- `400` — The request is invalid
- `401` — Consumer with provided credentials was not found
- `403` — Operator doesn't have access to resource
- `404` — Entity with the provided id was not found

---

[API](https://skmtc.net/monta/apis/monta-partner-api.md) · [All operations](https://skmtc.net/monta/apis/monta-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monta/monta-partner-api/revisions/517e18f11015/schema)
