remove

Remove file or directory (ignore call, if it does not exist)

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

Files.remove(name);

Description

Removes the file or directory "name". If "name" does not exist, the function call is ignored. If "name" is a directory, first the content of the directory is removed and afterwards the directory itself.

This function is silent, i.e., it does not print a message.

Syntax

remove(name)

Inputs (1)

name

Type: String

Description: Name of file or directory to be removed