The sample code below should be entered inside the Edit window's Command mode and not inside the File I/O dialog box.
This code simply closes the file assigned to the file pointer, FPTR:
FILE/CLOSE,FPTR,KEEP
This code, which uses the DELETE parameter, closes and deletes the file assigned to FPTR:
FILE/CLOSE,FPTR,DELETE