delete files from app(documents directory)

How do I delete files from app(documents directory) from .js? Example: photos. I know it's system.io but I need help with the structuring of it.

Thx 4 any help!! P

I got it:

import System.IO; // at the first line of .js script.
var DocumentsPath : String = "the path to the file";
var filename : String = "thefilename.png";

 File.Delete(DocumentsPath+filename); // just define the path and filename in variables.