Skip to Content
Xeonr Developer Docs
API Specificationxmb.api.v1.ContentService

Remove a title, season or episode

POST
/xmb.api.v1.ContentService/DeleteContent

Removes a whole title, one season (season_number), or one episode (season_number with episode_uuid or episode_number, not both) from the server's library. An exclusion is recorded at the same level so a later scan does not rebuild it from the files; a removed title is listed by ListRemovedSeries and can be restored. Watch progress tied only to the removed episodes is deleted.

With delete_files, every available file in the selection is first deleted from its hub through the same guarded operation as DeleteMediaFile. The purge is refused when a file also belongs to episodes outside the selection, is shared with another server, or sits on another server's hub (PERMISSION_DENIED). If it stops partway, the error says how many files were deleted and the library entry stays so the call can be retried. files_deleted counts the files the hubs removed.

Refused with FAILED_PRECONDITION while the title has an open request, an active download, a playback in progress or an active offline download, or when a selected file has not been fingerprinted. INVALID_ARGUMENT for an episode without a season, both episode selectors, or negative numbers. Requires an administrator of the server. Audited as content.deleted.

Required scopes: xmb:admin

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

serverSlug?string
Length1 <= length
seriesUuid?string
Formatuuid
seasonNumber?|
Formatint32
episodeUuid?string
deleteFiles?boolean
episodeNumber?|
Formatint32
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.ContentService/DeleteContent" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "title": "Severance",
  "episodesDeleted": "10",
  "watchedEpisodesDeleted": "3",
  "filesDeleted": "10"
}