🍿 @lorenzopant/tmdb

Delete

Permanently delete a v4 list and all its items.

Permanently deletes a list and all of its items. This action cannot be undone. If you only want to empty the list, use clear() instead.

async delete(params: V4DeleteListParams): Promise<V4ListStatusResponse>

TMDB Reference: Delete List

Parameters

NameTypeRequiredDescription
list_idnumberThe TMDB list ID to delete.

Returns

V4ListStatusResponse

Errors

HTTPTMDB codeCause
4013Invalid or missing access token.
40434List not found.
40315Not authorized to delete this list.

Example

import { TMDB } from "@lorenzopant/tmdb";

const tmdb = new TMDB("your-access-token");

const { success } = await tmdb.v4.lists.delete({ list_id: 8700 });
console.log(success); // true

On this page