If this is pure vRO, you should move this thread to the vRO subforum.
Have you tried the File scripting object and its method deleteFile()?
Note that you need to configure read/write/execute access permissions for the corresponding directories in the file /etc/vco/app-server/js-io-rights.conf
Yes, rwx permission is available in that file for CIFS share. Also, for testing purpose I have tried like below and is successful. Thank you!
//For example test1 file residing in the share
var fName = "test1.xml";
var fPath = outdir+"//folderName//"+ fName;
var dFile = new File(fPath);