A system and method for designating and deleting expired files includes a means
for storing expiration dates along with file identification data maintained by
the file system. An earliest expiration date is stored in data maintained by the
file system pertaining to each directory. In this manner, a check of the directory
data indicates whether one or more expired files exist in the directory. The system
date is compared to the earliest expiration date for a directory, for example when
a "list contents of directory" command is received. If the earliest expiration
date is earlier than the system date then a comparison is made with the files in
the directory and individual files with expiration dates earlier than the current
date are deleted. The earliest expiration date is then update to the correspond
to the next earliest expiration date falling after the current date.