[SOLVED] Can't delete a series using the API

Sonarr version: 2.0.0.5301
OS: Ubuntu 16.04

I am trying to delete a series using the API with the following instruction in Python:

Response = requests.delete(http://192.168.###.###:8989/api/series/{id}?deleteFiles=true&apikey=#########)

Response.status_code is 200 but the series is not deleted nor are the files. I tried various combinations, resulting mostly in 404. I tried to change “delete” for “get” and I got details of the series as it should.

Can someone help me? Thanks in advance.

Trace log files please.

Once I understood that there was 3 levels of log, I checked the trace log and found a code 303. By doing a search on the Internet, I found a place where they sould change the address 192.168.###.###:8989/api… for 192.168.###.###:8989/sonarr/api/…. I did this and it works.

Thanks.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.