cancel
Showing results for 
Search instead for 
Did you mean: 

File Deletion Issue - Using Delete File Action Block

Former Member
0 Kudos

Hi all,

I am trying to read and delete a file by using MII action blocks from a folder of UNIX system where the Net Weaver is installed. I am able to read the file successfully from that folder and after reading I am trying to delete the file by using u201CDelete Fileu201D action block. I provided the path and file name in action block.The u201CSuccessu201D return of u201CDelete Fileu201D action block is returning value 1 but the file is not deleted from that folder. I am able to see the same file there.

Can anybody help me to understand the problem.

Thanks in advance

Chandan

Accepted Solutions (0)

Answers (2)

Answers (2)

abesh
Contributor
0 Kudos

Does the user MII is running as have delete rights to the file ?

Run these two commands and post the output here :

1. ps aux

2. ls -l <filename_to_be_deleted>

I would have used a "grep" with command 1 but I don't know what process MII runs as...

former_member206397
Contributor
0 Kudos

Hi,

How we can assign the deletion right to the User. I have created the file with authentication 777. So, that everybody can get all kind of access. Initially I have tried with 770 but I was not able to read the file even. Then I have changed it to 777 and I am able to read the file but not able to delete the file.

Thanks

Chandan

0 Kudos

What version of MII (SP and build) and NW (if applicable) are you working with?

Regards,

Mike

former_member206397
Contributor
0 Kudos

Hi,

I am running with MII 12.1.8

Thanks

Chandan