Skip to content

Commit

Permalink
feat: Don't delete files by default in removeTorrent (#134)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: removeTorrent no longer removes data from disk by default
  • Loading branch information
scttcper committed Aug 30, 2024
1 parent 15cfc27 commit 94a65c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transmission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ export class Transmission implements TorrentClient {

/**
* Removing a Torrent
* @param removeData (default: false) If true, remove the downloaded data.
*/
async removeTorrent(id: NormalizedTorrentIds, removeData = true): Promise<AddTorrentResponse> {
async removeTorrent(id: NormalizedTorrentIds, removeData = false): Promise<AddTorrentResponse> {
const ids = this._handleNormalizedIds(id);
const res = await this.request<AddTorrentResponse>('torrent-remove', {
ids,
Expand Down

0 comments on commit 94a65c5

Please sign in to comment.