Api - remove nzb and delete files
Api - remove nzb and delete files
Is there any chance that this could be added to the api, as there is a permission snag if you just "remove nzb" with the left over files
Re: Api - remove nzb and delete files
It's already in the api.
Just add &del_files=1 to the call.
(The docs are outdated, we're working on better ones).
Just add &del_files=1 to the call.
(The docs are outdated, we're working on better ones).
- qonstrukt
- Newbie
- Posts: 40
- Joined: December 6th, 2011, 6:35 am
- Location: Eindhoven, Netherlands
- Contact:
Re: Api - remove nzb and delete files
I tried this today, but it didn't seem to remove any files. It did still remove the NZB from history though, and deleting files from the web interface does work for me.
I'm using the API of SABnzbd 0.6.15.
I'm using the API of SABnzbd 0.6.15.
Re: Api - remove nzb and delete files
"Delete files" only works for failed items.
Files of successful items will not be removed.
Files of successful items will not be removed.
- qonstrukt
- Newbie
- Posts: 40
- Joined: December 6th, 2011, 6:35 am
- Location: Eindhoven, Netherlands
- Contact:
Re: Api - remove nzb and delete files
Ok, it was a failed download because the files were encrypted, so it doesn't remove the files in that case?
Re: Api - remove nzb and delete files
It should delete any failed job and the files (assuming you ask for that).
It works when I test it.
This is the proper URL:
or as a curl call:
BTW: an encrypted item that is auto-paused in the queue must be delete with another call:
It works when I test it.
This is the proper URL:
Code: Select all
http://localhost:8080/sabnzbd/api?apikey=APIKEY&mode=history&value=SABnzbd_nzo_dz_qgg&name=delete&del_files=1
Code: Select all
curl http://localhost:8080/sabnzbd/api -F apikey=APIKEY -F mode=history -F value=SABnzbd_nzo_dz_qgg -F name=delete -F del_files=1
Code: Select all
http://localhost:8080/sabnzbd/api?apikey=APIKEY&mode=queue&value=SABnzbd_nzo_dz_qgg&name=delete&del_files=1
- qonstrukt
- Newbie
- Posts: 40
- Joined: December 6th, 2011, 6:35 am
- Location: Eindhoven, Netherlands
- Contact:
Re: Api - remove nzb and delete files
That is in my memory how I implemented it, but I'll look up the exact URL's later today and perform some more tests.
- qonstrukt
- Newbie
- Posts: 40
- Joined: December 6th, 2011, 6:35 am
- Location: Eindhoven, Netherlands
- Contact:
Re: Api - remove nzb and delete files
Just tested again, and it does indeed work, but I was looking at a same named folder in my 'complete' folder instead of my 'incomplete' folder... doh! Bedankt voor je tijd.