Skip to content

del_files param for jobDelete() method #3

@IlyaMatsuev

Description

@IlyaMatsuev

Hello,
First of all, thank you for creating this repository. I'm using this package as part of my project.

I noticed that jobDelete() method in the client is missing an option del_files.

By default, this option is false (0), which means that deleting a job does not delete the files that have already been downloaded (https://sabnzbd.org/wiki/configuration/4.5/api#delete).

Could you please add an additional boolean parameter to this method to allow deleting related files together with a job deletion?

This is what I would expect:

jobDelete(id: string | string[], deleteFiles?: boolean): Promise<Results> {
    // ...
}

If needed, I can create an MR myself.
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions