title: Delete file from file system in ionic 4
body: <p>I am working with one application in which I am creating offline PDF and save them in file system.
  Now the problem is when I delete the particular record I need to delete the PDF from file system I go through the file plugin but couldn't find any method related to that. I am using ionic 4 here are some peace of code.</p>
  
  <pre><code>if (this.plt.is('cordova')) {
        this.pdfObj.getBuffer((buffer) =&gt; {
          const blob = new Blob([buffer], { type: 'application/pdf' });
          // Save the PDF to the data Directory of our App
          this.file.writeFile(this.file.externalRootDirectory + '/Downloads/', 'ACCSYS-' +
          this.randomString(4) + '-' + encodeURI(this.headerData.title) + '.pdf', blob, { replace: true }).then(fileEntry =&gt; {
            // Open the PDf with the correct OS tools
            setTimeout(() =&gt; {
              this.hideLoader();
              this.fileOpener.open(fileEntry.nativeURL, 'application/pdf');
              this.pdfObj = null;
            }, 1000);
          });
        });
      } else {
        setTimeout(() =&gt; {
          this.hideLoader();
          this.pdfObj.download();
          this.pdfObj = null;
        }, 500);
      }
  </code></pre>
  
  <p>Assume I store the nativeURL in localstorage.</p>
  
  <p>any idea how to delete the file ??</p>