Oms API POST model delete - openmpp/openmpp.github.io GitHub Wiki

User can delete all model files to reduce storage space usage. It is a permanent delete, not a "recycle bin" operation and user cannot recover it later.

Method:

POST /api/admin/model/:model/delete

Arguments:

:model - (required) model digest or model name

Model can be identified by digest or by model name. It is recommended to use digest because it is uniquely identifies model. It is possible to use model name, which is more human readable than digest, but if there are multiple models with same name in database then result is undefined.

Call examples:

curl -v -X POST http://localhost:4040/api/admin/model/RiskPaths/delete
curl -v -X POST http://localhost:4040/api/admin/model/d976aa2fb999f097468bb2ea098c4daf/delete

For example:

curl -v -X POST http://localhost:4040/api/admin/model/d976aa2fb999f097468bb2ea098c4daf/delete

> POST /api/admin/model/d976aa2fb999f097468bb2ea098c4daf/delete HTTP/1.1
> Host: localhost:4040
> User-Agent: curl/8.9.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Location: /api/admin/model/d976aa2fb999f097468bb2ea098c4daf/delete
< Content-Type: text/plain
< Date: Fri, 20 Dec 2024 02:00:48 GMT
< Content-Length: 0
<
⚠️ **GitHub.com Fallback** ⚠️