Page 1 of 1

API delete all does not work

PostPosted: Tue Aug 14, 2018 1:19 pm
by Biship
The history call shows files I know downloaded weeks ago.
http://htpc:8999/api?apikey=<apikey>&mode=history
Per: https://sabnzbd.org/wiki/advanced/api#delete_history
I can clear them manually, by ID:
http://htpc:8999/api?apikey=<apikey>&mode=history&name=delete&value=3122
However the all param does not work:
http://htpc:8999/api?apikey=<apikey>&mode=history&name=delete&value=all
(deletes nothing)

Can you please fix?

Re: API delete all does not work

PostPosted: Wed Aug 15, 2018 12:36 pm
by Quade
I can look into it. Should be easy to implement.

Re: API delete all does not work

PostPosted: Wed Aug 15, 2018 2:35 pm
by Biship
Your the best developer on this web site.
Thank you.

Re: API delete all does not work

PostPosted: Tue Aug 28, 2018 7:10 am
by Biship
Doesn't work in 5079. A chance you can get it into the next beta?

Re: API delete all does not work

PostPosted: Tue Aug 28, 2018 10:23 am
by Quade
It was too late to put it into 6.81.

It's on my todo list. Basically every time I make even small changes this late in the game, it typically screws something up. 6.81 seems to be stable and reliable so, I didn't want to chance fucking it up.

Re: API delete all does not work

PostPosted: Wed Dec 19, 2018 7:52 am
by Biship
Any chance this can make the next beta?

Re: API delete all does not work

PostPosted: Wed Dec 19, 2018 4:08 pm
by Quade
"All" is in there. I was just looking at it. I'll see if I can figure out why it's not "all"ing.

Edit:

I tested this using a test jig to send "delete all" for queue and history. I see it working. It won't delete anything that doesn't have an NZB so, it won't delete header downloads or files added to downloading using search or headers.

Re: API delete all does not work

PostPosted: Tue May 14, 2019 7:13 am
by Biship
Still not working.
In 5103:

Lists history:
http://htpc:8999/api?apikey=<key>&mode=history

Does not delete history:
http://htpc:8999/api?apikey=<key>&mode=history&name=delete&value=all