delete_file

Delete file from the Moku file system

User can delete files from bitstreams, ssd, logs, persist and media directories. If using the REST API directly, these directories form the group name in the URL and the filename follows the delete command; e.g. /api/persist/delete/<filename>. No Client Key is required (ownership doesn't need to be taken).

When using either of the clients, user can access this function directly from instrument reference.

Parameters

string required
Target directory to access
allowed values:
Moku:Labmedia, bitstreams, logs, tmp
Moku:Gopersist, bitstreams, logs, tmp
Moku:Prossd, bitstreams, logs, tmp, persist
Moku:Deltassd, bitstreams, logs, tmp, persist
string required
Name of the file to delete

Python Support

In Python the command is delete(), MATLAB and cURL use the command delete_file()

Usage in clients,