Skip to main content
Glama
philogicae

rqbit Torrent Client MCP

delete_torrent

Remove torrents and associated files from the rqbit Torrent Client to free up storage space and manage downloads.

Instructions

Delete a torrent and its files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
torrent_idYes

Implementation Reference

  • The MCP tool handler for 'delete_torrent', registered via @mcp.tool() decorator. Handles input validation implicitly via type hints, executes the deletion by calling RqbitClient.delete_torrent, and returns a success or error message.
    @mcp.tool() async def delete_torrent(torrent_id: str) -> str: """Delete a torrent and its files.""" logger.info(f"Deleting torrent: {torrent_id}") result = await rqbit_client.delete_torrent(torrent_id) if isinstance(result, str): error = f"Error deleting torrent {torrent_id}: {result}" logger.error(error) return error return "Successfully deleted torrent " + torrent_id
  • Supporting method in RqbitClient wrapper that sends a POST request to the rqbit API endpoint /torrents/{id}/delete to perform the torrent deletion.
    async def delete_torrent(self, id_or_infohash: str) -> None | str: """Delete a torrent and its files.""" return await self._safe_request("POST", f"/torrents/{id_or_infohash}/delete")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/philogicae/rqbit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server