sonarr_purge_season
Purge a season by deleting its episode files in Sonarr and removing matching torrents in qBittorrent (including cross-seeds). Use confirm to execute or dry-run.
Instructions
Purge a whole season everywhere: delete its episode files in Sonarr AND remove the matching torrent(s) in qBittorrent-via-qui, cross-seeds included (destructive).
The torrents are located via the season's history downloadId(s) and their qui cross-seed siblings. include_loose_matches=False drops name/release-matched siblings (keeps content_path matches). delete_torrent_files also deletes the torrents' files from disk. Set confirm=True to execute; False for a dry-run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"series_id": "<series_id>",
"season_number": "<season_number>"
},
"name": "sonarr_purge_season"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| series_id | Yes | ||
| season_number | Yes | ||
| delete_torrent_files | No | ||
| include_loose_matches | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |