---
title: "List Deleted Media"
method: GET
path: "/deleted_media"
tags: ["Deleted Media"]
---

# List Deleted Media

`GET /deleted_media`

## Request

- Base URL: `https://api.wistia.com/modern`
- URL: `https://api.wistia.com/modern/deleted_media`
- Auth: HTTP bearer

Lists media that has been soft-deleted and is still inside the account's
restore window. Media is listed only while it can still be restored — 30 days
on most plans, 14 on free plans. After which it is permanently purged.


## Requires api token with one of the following permissions
```
Read all folder and media data
```

Tokens with the "Act with a team member's permissions" permission
(`all:delegate_to_contact_permissions` scope) can also be used. Requests
made with such a token are authorized using the permissions of the
contact assigned to the token.

An [expiring access token](https://docs.wistia.com/reference/post_expiring-token)
created with the `all:delegate_to_contact_permissions` scope and an
`account` authorization granting the `manage-deleted-media` permission can
also be used. Only the deleted media the token's `media` authorizations
name are listed.

## Query parameters

- `hashed_ids[]` string[]
- `sort_by` 'id' | 'deleted' | 'name' | 'type' | 'created'
- `sort_direction` 0 | 1
- `page` integer
- `per_page` integer
- `cursor` object
  - `enabled` 0 | 1: If `cursor[enabled]` is set to 1, the first result set will be fetched with cursor pagination enabled. This values is ignored if `cursor[before]` or `cursor[after]` are set.
  - `before` string: If `cursor[before]` is set then cursor pagination is enabled and all records before the cursor up to the `per_page` are returned. This feature is useful for fetching "new records", for example, in a "pull to refersh" feature when showing records in a descending order.
  - `after` string: If `cursor[after]` is set then cursor pagination is enabled and all records after the cursor up to the `per_page` are returned.

## Headers

- `X-Wistia-API-Version` string, required

## Response `200`

Deleted media retrieval successful

- object[]
  - `hashed_id` string: A unique alphanumeric identifier for this media.
  - `name` string: The media display name.
  - `type` string: The type of media (e.g. Video, Audio).
  - `duration` number, nullable: The length of the media in seconds.
  - `deleted_at` string, date-time: When the media was deleted, in ISO 8601 format.
  - `restore_expires_at` string, date-time: The deadline after which this media is permanently purged and can no longer be restored (deleted_at plus the account's restore window).
  - `folder` object, nullable: The folder the media will return to if restored without an explicit target. Null if the original folder was also deleted.
    - `hashed_id` string
    - `name` string, nullable
  - `cursor` string, nullable: A cursor for stable pagination based on current `sort_by` order. You can pass this to `cursor[before]` or `cursor[after]` as a parameter to fetch the records before or after this record in the same sort order. This is only populated if records were fetched with `cursor[enabled]`, or `cursor[before]` or `cursor[after]`.

## Other responses

- `400`: Bad request
- `401`: Unauthorized, invalid or missing token
- `403`: Forbidden, token is valid but account does not have access to feature
- `500`: Internal server error

## Changes

- **2026-11-03** `b86cb2a7b420`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wistia/apis/data-api/changes/deleted_media/get.md)

---

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