diff --git a/pkg/qbittorrent/torrent.go b/pkg/qbittorrent/torrent.go index f7c62c2..1d2ff89 100644 --- a/pkg/qbittorrent/torrent.go +++ b/pkg/qbittorrent/torrent.go @@ -577,7 +577,7 @@ func (c *client) DeleteTorrents(ctx context.Context, hashes []string, deleteFile var formData = url.Values{} formData.Add("hashes", strings.Join(hashes, "|")) formData.Add("deleteFile", strconv.FormatBool(deleteFile)) - var apiUrl = fmt.Sprintf("%s/api/v2/torrents/resume", c.config.Address) + var apiUrl = fmt.Sprintf("%s/api/v2/torrents/delete", c.config.Address) result, err := c.doRequest(ctx, &requestData{ url: apiUrl, method: http.MethodPost,