remove
‘remove(string)’
This will try to delete the specified file.
When errors occur during a call, it will throw a ‘Unable to remove file PATH’ and hang execution.
Examples
var fs = require('fs');
var toDelete = 'someFile.txt';
fs.remove(toDelete);
phantom.exit();