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
| Name | Type | Required | Description |
|---|---|---|---|
list_id | number | ✅ | The TMDB list ID to delete. |
Returns
Errors
| HTTP | TMDB code | Cause |
|---|---|---|
| 401 | 3 | Invalid or missing access token. |
| 404 | 34 | List not found. |
| 403 | 15 | Not 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