title: How to delete a file in imageJ macro
body: <p>I am trying to write a macro so in imageJ. I want to apply this macro to different image file.</p>
  
  <p>So in the beginning, I save the selected picture with temp.jpg file name</p>
  
  <pre><code>saveAs("Jpeg", "/Users/pathreskoo/Desktop/IHC/temp.jpg");
  </code></pre>
  
  <p>After I finish the process, I want to delete the file
  I try</p>
  
  <pre><code>ok = file.delete("/Users/pathreskoo/Desktop/IHC/temp.jpg");
  </code></pre>
  
  <p>But the file was not removed. What should I do?</p>