SetExpireDays

STD.File.SetExpireDays(lfn, expireDays )

lfnA string containing the logical name of the file.
expireDaysNumber of days before the file expires. Setting to 0 specifies to use the system's default expire value (specified in the Sasha server's ExpiryDefault attribute).

The SetExpireDays action sets a logical file's expiration criteria (the expireDays attribute). The file is deleted by the Sasha server when a file has not been accessed for the number of days specified.

Example:

STD.File.SetExpireDays('~samples::myscope::myfile',30);
 //file expires and is deleted after 30 days w/o access

See Also: GetExpireDays, ClearExpireDays