title: How can I delete a downloaded file using Selenium RemoteWebDriver?
body: <p>I am writing a test to check that a file can be downloaded from a particular web page and I want it to be able to run both locally and remotely (i.e. on a node via Selenium grid). Before anyone links me to the 'do you really need to download the file?' article, I have already managed to download and check the file, I just need a way of deleting it after the test has completed. Just calling <code>File.delete();</code> or similar will only work locally (as far as I'm aware) so I can't use that to delete the file from the node machine. I'm aware of the class <code>org.openqa.selenium.io.TemporaryFileSystem</code> however I can't find any instructions for how to use it.</p>
  
  <p>Can anyone offer a better solution than 'just run a script on the node machine to delete the file'? Thanks!</p>