Prueba de HackerEarth
var xyFile:File = File.createTempFile();
if (xyFile.isDirectory() == true)
xyFile.deleteDirectory(true)
else
xyFile.deleteFile();
Rajesh