Oms API DELETE from user files - openmpp/openmpp.github.io GitHub Wiki
DELETE file or folder from user files directory on the server.
If user files access enabled in server configuration then user can upload or download files, create or delete folders in user files directory.
This is a beta version and may change in the future.
Method:
DELETE /api/files/delete/:path
DELETE /api/files/delete?path=....
Arguments:
:path - (required) path to the new sub-directory to be creaded.
If sub-directory not exists then method does nothing and return success.
Call examples:
curl -v -X DELETE http://localhost:4040/api/files/delete/dir
curl -v -X DELETE http://localhost:4040/api/files/delete?path=dir%2Fsub-dir
Please notice URL query parameters: ?path=dir%2Fsub-dir
which is used to specify dir/sub-dir
path.
User files may be located above download and upload directory on the server:
models/
home/ -> user personal home directory
io/ -> user files directory
download -> user directory for download files
upload -> user directory to upload files
Above is a typical server folder structure with user files directory location by default.
This method would not delete download
or upload
directory if oms
server is running with downloads or uploads enabled:
oms -oms.HomeDir models/home -oms.AllowDownload -oms.AllowUpload