next up previous

12.4.2.8 Remove

The remove function is used to delete a file.

Syntax

(remove <file-name>)

The <filename> must either be a string or symbol and may include directory specifiers. If a string is used, the backslash (\) and any other special characters that are part of <filename> must be escaped with a backslash. The remove function returns TRUE if it was successful, otherwise FALSE.


Portability Note

The remove function uses the ANSI C function remove as a base. If the ANSI_COMPILER flag was disabled when CLIPS was compiled, then this function will be nonfunctional and always return FALSE.


next up previous