Trying to delete all files and subdirectories in /home/dev/unsecured/ OR any subdirectory that’s created when Writing to a File with PACControl.
Yes it can be done with NODE-RED (rm -r /home/dev/unsecured/) but this is an OEM customer and trying to keep everything within PACControl since this will be at multiple locations with possibly different versions of node-red, etc.
Basically PACControl is just cleaner for them.
Currently tried the following
XFER_WRITE_STATUS = SendCommunicationHandleCommand(chXFER_FILE, “delete”);
Able to delete individual files under the subdirectory - com handle setup as follows:
XFER_COM_HANDLE = “file:w,/home/dev/unsecured/PARAMETER/TUNE_F.TXT”;
Tried several variations to delete the directory (in this case PARAMETER) with no success.
I do not get a command status failure (zero) but nothing is deleted.
Any ideas on how to delete the PARAMETER sub-directory or a mass delete under a directory via PACControl would be welcome.