Sandbox API refuses DELETE method

I’m trying to use the sandbox. First I 've added a couple of AWS hosts, and than later at cleanup, i tried to use the API:

  -H 'Accept: application/json' \

  "id": "e6d36e9e-0ff8-42f7-a58b-06e56dc56c18",
  "type": "error",
  "links": {},
  "actions": {},
  "status": 405,
  "code": "Method not allowed",
  "message": "Method not allowed",
  "detail": null,
  "baseType": "error"

Hosts have to be in inactive state (via the deactivate action) before they can be deleted.