VMware Cloud Community
balawiz
Enthusiast
Enthusiast
Jump to solution

Delete a file from CIFS share using vRO Workflow

We would be able to map a CIFS share and create files for certain activities using vRO workflow. We are looking for ways to delete a file as well.

We are running with vRO 7.2 and any help related to this issue is appreciated.

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

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

View solution in original post

Reply
0 Kudos
3 Replies
daphnissov
Immortal
Immortal
Jump to solution

If this is pure vRO, you should move this thread to the vRO subforum.

Reply
0 Kudos
iiliev
VMware Employee
VMware Employee
Jump to solution

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

Reply
0 Kudos
balawiz
Enthusiast
Enthusiast
Jump to solution

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);

dFile.deleteFile();

Reply
0 Kudos