Oms API DELETE all upload files - openmpp/openmpp.github.io GitHub Wiki
DELETE all upload files from the server.
This method only avaliable if server configured to allow uploads to the server by user.
It does delete all files from server download folder.
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
.csvfiles with parameters intoRiskPaths.set.New-Datafolder - extract workset
.jsonmetadata file - create new or update existing New-Data workset in RiskPaths model database
Methods:
DELETE /api/upload/delete-all
DELETE /api/upload/start/delete-all
First method deletes all files from server upload folder.
Second method will initiate deleting the files. Actual delete performed in background and results can be checked through log file.
Call example:
curl -v -X DELETE http://localhost:4040/api/upload/delete-all
curl -v -X DELETE http://localhost:4040/api/upload/start/delete-all