rm
The rm function removes a file. If the file exists and could be removed, it returns true. Otherwise if the file does not exist, or if the file could not be removed, it returns false.
Syntax
%file.rm(string)
Example 1. Removing a file
if (%file.size("/var/log/radius.log") > (((uint64)1) << 20)) {
%file.rm("/var/log/radius.log")
}
File access restriction
Files accessed in this function are restricted by the limit files section in the main security configuration. If present in radiusd.conf, only files in the paths listed can be accessed.