---
title: "Remove a background from an On Demand page"
method: DELETE
path: "/ondemand/pages/{ondemand_id}/backgrounds/{background_id}"
tags: ["On Demand\\Backgrounds"]
---

# Remove a background from an On Demand page

`DELETE /ondemand/pages/{ondemand_id}/backgrounds/{background_id}`

## Request

- Base URL: `https://api.vimeo.com`
- URL: `https://api.vimeo.com/ondemand/pages/{ondemand_id}/backgrounds/{background_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/ondemand/pages/:ondemand_id/backgrounds/:background_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Information about this method appears below.

## Path parameters

- `background_id` number, required
- `ondemand_id` number, required

## Response `204`

The background image was deleted.

- Picture
  - `active` boolean, required: Whether this picture is the active picture for its parent resource.
  - `link` string: The upload URL for the picture. This field appears when you create the picture resource for the first time.
  - `resource_key` string, required: The picture's resource key string.
  - `sizes` object[], required: An array containing reference information about all available image files.
    - `height` number, nullable, required: The height of the image.
    - `link` string, required: The direct link to the image.
    - `link_with_play_button` string: The direct link to the image with a play button overlay.
    - `width` number, required: The width of the image.
  - `type` 'caution' | 'custom' | 'default', required: The type of the picture: Option descriptions: * `caution` - An image that is appropriate for all ages. * `custom` - A custom image for the video. * `default` - The default image for the video.
  - `uri` string, required: The picture's URI.

## Other responses

- `403`: If you are attempting to modify an On Demand page you don't own.
- `404`: No such On Demand page or background image exists.

---

[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)
