Remove from history
Delete plays from your watch history.
DELETE https://cotlet.dev/api/v1/trakt/histories
write
Removes the given titles from your history, all plays of each one. Use get_history first to see which plays you are deleting. add_to_history logs a play again with a date. It reaches no one, so it needs no confirmation.
Parameters
| Name | Type | Description |
|---|---|---|
| items array required | array | Titles to change. Each item is an object: type ('movie', 'show', 'season' or 'episode'), title and year, or trakt_id from search_titles. Seasons and episodes also take season and episode numbers. add_to_history also takes watched_at, rate_titles takes rating. |
Request
curl -X DELETE "https://cotlet.dev/api/v1/trakt/histories?items=items" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("trakt", "remove_from_history", {"items":"items"}) const result = await cotlet.call('trakt', 'remove_from_history', {"items":"items"}); cotlet call trakt remove_from_history --data '{"items":"items"}' Example response
{
"removed": {
"movies": 0,
"episodes": 1
},
"not_found": []
}