DELETE A FILE FROM YOUR DIRECTORY

Caution:  Whenever you use "delete," use with care.

All users are responsible for cleaning out unwanted files from their directories. 

Look at the filenames with the "dir(ectory)" command and the "/date" qualifier:

Example:  $dir/date *.lis 

Directory USERS1:[SBR_KRISTI]
BIRTHDAYS.LIS;1 18-SEP-2002 12:47:16.74
CAFEREPORT.LIS;6 18-SEP-2002 10:31:15.63
FLP.LIS 11-SEP-2002 08:05:20:10.17

Total of 7 files.

You can also use the "/size" qualifier:

Example:  $dir/date/size *.lis

Choose the file(s) you wish to delete.  Enter the Delete command, followed by the filename, including the version number.

Example:  $delete/log flp.lis;1

%DELETE-I-FILDEL, USERS1:[SBR_KRISTI]FLP.LIS;1 deleted (36 blocks)

If you see different versions of the same file, the "purge" command deletes earlier versions which are usually unimportant:

Example:  $purge/log  *.*

Types of files which are usually safe to delete:

  • Temporary files: those with .tmp extension
  • Old log files: ending with .log extension that were created more than 2 weeks ago (A word of caution here: never delete a log file if you suspect an error has occurred in the running of the batch which created the log file!  The log file will help to trace the cause of the error.)
  • Old pointer files: those with .ptr extension that were created more than 2 weeks ago

The wild card "*" indicator can be used to delete files with common characteristics:

Example:  $delete/log *.tmp;*

Another useful command is $delete/confirm.  This command instructs the system to display the files in your directory, one-by-one, and stop to let you confirm deletion on each one.

Example:  $delete/confirm  *.lis;*

To use the help menu:

$HELP
$HELP DELETE
$HELP PURGE