title: How to remove image file system in ionic 2?
body: <p>I am trying to remove the image from the gallery. </p>
  
  <p>An error displays: </p>
  
  <blockquote>
    <p>Wrong type for parameter "uri" of resolveLocalFileSystemURI: Expected
    String, but got Array.</p>
  </blockquote>
  
  <p><strong>Code</strong></p>
  
  <pre><code>let data:Array&lt;{ imgUrl: string, fileName: string }&gt;;
      data = new Array();
      let j = 0;
      for(let test of pathimg){
        data.push({imgUrl:pathimg,fileName:filename[j]+'.png'});
        j++;
      }
  
  for(let test of data){    
      this.file.removeFile(test.imgUrl, test.fileName).then(_ =&gt;
          console.log('deleted succesfully')).catch(err =&gt;
              console.log('cannot delete'));
  }
  </code></pre>