Calling core API DELETE endpoint through supervisor proxy fails with HTTP 405

Hello Home Assistant community,

I’m developing an add-on that needs to hit a Home Assistant Core API endpoint with the delete endpoint.

I’ve set up my container to communicate with Home Assistant Core using the proxy provided by the supervisor, at http://supervisor/core/api/.

I can make GET and POST requests fine, but my add-on also needs to make a DELETE request. When I send a DELETE request from my add-on, I get a HTTP 405 Method Not Allowed.

I’ve noticed that in the supervisor endpoints docs, GET /core/api and POST /core/api are listed, but there is no DELETE /core/api.

Looking for any recommendations on the best way to approach this!

Maybe a design issue for self protection?

What exactly are you trying to achieve? What is your use case?