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

DELETE upload files from the server.

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

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

As result of workset upload oms service does:

  • upload archive, for example: RiskPaths.set.New-Data.zip
  • extract workset .csv files with parameters into RiskPaths.set.New-Data folder
  • extract workset .json metadata file
  • create new or update existing New-Data workset in RiskPaths model database

Methods:

DELETE /api/upload/delete/:folder
DELETE /api/upload/start/delete/:folder

First method deletes upload files from the server.

Second method will initiate deleting of upload files from the server. Actual delete performed in background and results can be checked through log file.

Arguments:

:folder - (required) upload folder file name, for example: RiskPaths.set.New-Data

Call example:

curl -v -X DELETE http://localhost:4040/api/upload/delete/RiskPaths.set.New-Data
curl -v -X DELETE http://localhost:4040/api/upload/start/delete/RiskPaths.set.New-Data
⚠️ **GitHub.com Fallback** ⚠️