Oms API DELETE all download files - openmpp/openmpp.github.io GitHub Wiki

DELETE all download files from the server.

This method only avaliable if server configured to allow downloads by user.

It does delete all files from server download folder.

Download can be initiated through UI or by direct API call:

For each above method oms service will create:

  • download archive, for example: RiskPaths.run.102.zip
  • model run .csv files for parameters and output tables in RiskPaths.run.102 folder
  • model run .json metadata files

Methods:

DELETE /api/download/delete-all
DELETE /api/download/start/delete-all

First method deletes all files from server download folder. Second method will initiate deleting the files. Actual delete performed in background and user may need to refresh page to verify the results.

Call examples:

curl -v -X DELETE http://localhost:4040/api/download/delete-all
curl -v -X DELETE http://localhost:4040/api/download/start/delete-all
⚠️ **GitHub.com Fallback** ⚠️