title: using deleteObjects in java for deleting files from aws s3 , getting successfully delete but files are not getting deleted
body: <p>i used below code to delete multiple files form s3 </p>
  
  <pre><code>AWSCredentials credentials = new BasicAWSCredentials(key, S3secretKey);
      AmazonS3 s3client = new AmazonS3Client(credentials);        
      String[] fileNames = files.split(",");
      if(fileNames.length==1)     
      s3client.deleteObject(bucketName+path, files);
      else{
      List&lt;KeyVersion&gt; keys = new ArrayList&lt;KeyVersion&gt;();
      for(int i =0 ; i&lt; fileNames.length ; i++){
          keys.add(new KeyVersion(fileNames[i]));   
      }
       DeleteObjectsRequest multiObjectDeleteRequest = new DeleteObjectsRequest(bucketName+path);
       multiObjectDeleteRequest.setKeys(keys);
       DeleteObjectsResult  delObjRes = s3client.deleteObjects(multiObjectDeleteRequest);
       System.out.format("Successfully deleted all the %s items.\n", delObjRes.getDeletedObjects().size());
  
      }       
  </code></pre>
  
  <p>showing successfully deleted  but files are not getting deleted from s3</p>
  
  <p>For single file code <code>s3client.deleteObject(bucketName, file);</code> works fine.</p>