From 5400494097fb02609aa4de35653fc6d030e3fa53 Mon Sep 17 00:00:00 2001 From: Chuong Date: Wed, 11 Jan 2017 17:00:33 +0700 Subject: [PATCH 1/2] Until it is fixed, let notify webtorrent user https://github.com/feross/webtorrent/issues/1000 --- docs/api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api.md b/docs/api.md index 0de88eae..ebf63177 100644 --- a/docs/api.md +++ b/docs/api.md @@ -165,6 +165,8 @@ Always listen for the 'error' event. Remove a torrent from the client. Destroy all connections to peers and delete all saved file data. If `callback` is specified, it will be called when file data is removed. +*Note: This feature is currently not delete torrent data ```/tmp/webtorrent/...``` (see client.add options), until it is implement, please implement it yourself (recommend using rimraf npm package). + ## `client.destroy([function callback (err) {}])` Destroy the client, including all torrents and connections to peers. If `callback` is specified, it will be called when the client has gracefully closed. From f2994442e43cf725989a9f1be78f152b7fd981d4 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 11 Jan 2017 02:11:48 -0800 Subject: [PATCH 2/2] docs: clarify wording --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index ebf63177..ce049dc0 100644 --- a/docs/api.md +++ b/docs/api.md @@ -165,7 +165,7 @@ Always listen for the 'error' event. Remove a torrent from the client. Destroy all connections to peers and delete all saved file data. If `callback` is specified, it will be called when file data is removed. -*Note: This feature is currently not delete torrent data ```/tmp/webtorrent/...``` (see client.add options), until it is implement, please implement it yourself (recommend using rimraf npm package). +*Note: This method does not currently delete torrent data (in e.g. `/tmp/webtorrent/...`, see the `path` option to `client.add`). Until this is fixed, please implement it yourself (consider using the `rimraf` npm package). ## `client.destroy([function callback (err) {}])`