Skip to content

Commit b3b2366

Browse files
committed
feat: Don't delete files by default in removeTorrent
BREAKING CHANGE: removeTorrent no longer removes data from disk by default
1 parent 2d56f42 commit b3b2366

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/deluge.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ export class Deluge implements TorrentClient {
363363
/**
364364
*
365365
* @param torrentId torrent id from list torrents
366-
* @param removeData true will delete all data from disk
366+
* @param removeData (default: false) If true, remove the data from disk
367367
*/
368-
async removeTorrent(torrentId: string, removeData = true): Promise<BooleanStatus> {
368+
async removeTorrent(torrentId: string, removeData = false): Promise<BooleanStatus> {
369369
const req = await this.request<BooleanStatus>('core.remove_torrent', [torrentId, removeData]);
370370
return req._data;
371371
}

0 commit comments

Comments
 (0)