title: Verify if the deleteObject has actually deleted the object in AWS S3 Java sdk
body: <p>I have the following method, which deletes a file from AWS S3 Bucket, however, </p>
  
  <ul>
  <li>there is no exception thrown if the file doesn't exist </li>
  <li>there is no success code or flag to see if the file has been deleted successfully</li>
  </ul>
  
  <p>is there any workaround to deal with this situation. </p>
  
  <pre><code>@Override
  public void deleteFile(String fileName) {
      try {
          this.client.deleteObject(builder -&gt;
                  builder
                          .bucket(this.bucketName).key(fileName)
                          .build());
      } catch (S3Exception ex) {
          ex.printStackTrace();
      }
  }
  </code></pre>