FreeRADIUS InkBridge

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")
}