Uninstalling jar binding via REST API

Does anybody know if this endpoint is supposed to work?
Trying to uninstall a binding from addons directory via REST API

http://localhost:8080/rest/addons/binding-whatever/uninstall?serviceId=jar

The result code is 200 but the request is not executed internally. Error Message:

[ERROR] [t.core.internal.addons.AddonResource] - Exception while uninstalling add-on: null

MainUI has to use some REST endpoint to do this, and I know of no other endpoint that MainUI could be using. Beyond that I can’t help.