Skip to main content
Glama
philogicae

rqbit Torrent Client MCP

delete_torrent

Remove unwanted torrents and their associated files from the rqbit Torrent Client MCP server by specifying the torrent ID.

Instructions

Delete a torrent and its files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
torrent_idYes

Implementation Reference

  • MCP tool handler function for 'delete_torrent'. Decorated with @mcp.tool() for automatic registration. Calls RqbitClient.delete_torrent and handles response.
    @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
  • Helper method in RqbitClient wrapper that sends POST request to rqbit API endpoint /torrents/{id}/delete to delete the torrent.
    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")

Other Tools

Related Tools

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