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

DELETE all user files 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-all

Call example:

curl -v -X DELETE http://localhost:4040/api/files/delete-all

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
⚠️ **GitHub.com Fallback** ⚠️