Deleted folder s3 code is not working

Hello Team,

I am not able to deleted the folder using the s3 library provided by workfusion.

below is the code for the same

<?xml version="1.0" encoding="UTF-8"?>

<config xmlns="http://web-harvest.sourceforge.net/schema/1.0/config" scriptlang="groovy">

	<robotics-flow>
		<robot driver="universal">
			<script><![CDATA[ 

	            accessKey		= "admin"
	            secretKey		= "admin123"
				inDesktop(){

                    s3EndpointUrl	= "http://localhost:15110";
                    signerType		= "S3SignerType";
                    bucket			= "mlrpa";
                    s3Key			= "inputfile/";
                    S3.deleteFolderFileS3(s3EndpointUrl, signerType, accessKey, secretKey, bucket, s3Key);

                 }

			]]></script>

		</robot>

	</robotics-flow>

		

    <export include-original-data="true"/>

</config>

Could you please look into the issue and provide some solution

Hello @diptiranjanpanda.
Which exception do you receive with this code?

i am not getting any exception but the bot not able to deleted the folder in the minio

Did you check this code in Studio bot task or in Control Tower?

i have checked both rpa express and control tower its not working

Thank you for the information. I was able to reproduce the same behavior on my side and informed team about this. I can suggest to use S3 plugins to delete folder. Please see my example:

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://web-harvest.sourceforge.net/schema/1.0/config" scriptlang="groovy">

    <s3 bucket="public">
       <var-def name="s3-del-test-file">
			<s3-delete name="test/test.txt"></s3-delete>			
	   </var-def>		
    </s3>
    
    <export include-original-data="true"></export>

</config>
1 Like