KB-127243: file.deleteold

file.deleteold

The file.deleteold command can be used to delete files that were last modified before a certain point in time. This command is used in order to retain the latest version of a file or the contents of a directory.

Syntax:

file.deleteold
{
root `<Path>`
spec `<Rules for determining the age>`
[keep `<number of old versions that you want to keep>`]
[filter `<File filter>`]
}

Example

Function ScriptAfterUpload
{
file.deleteold
{
root $vdog::specific->dirbackup
spec ftLastWriteTime
keep 1
}
Warning.IfDateEqual
}

Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center