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:

curl -u "${CATTLE_ACCESS_KEY}:${CATTLE_SECRET_KEY}" \
  -X DELETE \
  -H 'Accept: application/json' \
    'https://try.rancher.com/v2-beta/projects/1a12345/hosts/1h123'

{
  "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.