How to use the OJS API to remove reviewer files?

Describe the issue or problem
A reviewer added a zip archive with many small files. The OJS system unexpectedly unpacked the archive and now there are so many reviewer files. This is undesirable and we want to remove them by means of a Python script.

Steps I took leading up to the issue
I went through the REST API documentation but did not see any way to remove a reviewer file programmatically. Actually, there seems to be no way to even retrieve the particulars of such files. I hope somebody will know a way, though.

What application are you using?
OJS 3.4

Additional information

Hmm, it seems that there is no API call for this yet. I studied which URL, parameters, data, headers and cookies are sent by the browser, when a reviewer file is deleted. And I took note of the range of the file IDs. I then tried to send exactly the same request to the server from Python – of course after logging on and acquiring a session. It was in other words an exercise in hacking a website. Nice for a Friday afternoon. With thanks to ChatGPT. Eventually, it worked and I was able to remove more than 550 reviewer files.