The following examples deletes a file in the current directory:

new File().delete("AFILE")