---
title: "Restrict a user from viewing a private video"
method: DELETE
path: "/videos/{video_id}/privacy/users/{user_id}"
tags: ["Videos\\Viewing privacy"]
---

# Restrict a user from viewing a private video

`DELETE /videos/{video_id}/privacy/users/{user_id}`

## Request

- Base URL: `https://api.vimeo.com`
- URL: `https://api.vimeo.com/videos/{video_id}/privacy/users/{user_id}`
- Auth: OAuth 2
  - Authorization code: `/oauth/authorize`, token URL `/oauth/access_token`
  - Client credentials, token URL `/oauth/authorize/client`
  - Scopes: `edit`
- TypeScript: <https://skmtc.dev/vimeo/apis/vimeo-api/docs/videos/:video_id/privacy/users/:user_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

This method prevents a user from being able to view the specified private video.

## Path parameters

- `user_id` number, required
- `video_id` number, required

## Response `204`

The user was disallowed from viewing the private video.

## Other responses

- `403`: The video isn't set to a user-defined access list.
- `404`: No such user exists.

## Changes

- **2019-04-12** `80428f626f3e`: 2 info
  - api tag `Videos\Viewing privacy` added
  - api tag `Videos\Viewing Privacy` removed
- **2018-12-05** `26f856a94041`: 2 info
  - api tag `Videos\Viewing Privacy` added
  - api tag `Videos\Viewing privacy` removed

[Operation history](https://skmtc.dev/vimeo/apis/vimeo-api/changes/videos/:video_id/privacy/users/:user_id/delete.md)

---

[API](https://skmtc.dev/vimeo/apis/vimeo-api.md) - [All operations](https://skmtc.dev/vimeo/apis/vimeo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vimeo/apis/vimeo-api/revisions/ea882e0224a4?raw)
