(bind-func fleet_delete_unit
(let ((url:i8* (zalloc 256)))
(lambda (host:i8* port:i32 unit:i8*)
(sprintf url "http://%s:%d/%s/units/%s" host port FLEET_API_VERSION unit)
(let ((response (ghttp_request_body_as_json (ghttp_perform_DELETE url))))
(if (not (fleet_response_error_p response #t))
(println "Fleet: successfully deleted unit"))
(json_decref response)))))