pc:DeleteFile

Previous Next

Deletes a file from the file system.

Syntax

<pc:DeleteFile source=filepath />

The required filepath is a filepath identifying the file to be deleted.

This call has no effect and raises no error if no file is found at filepath.

 

Example

<pc:DeleteFile source="{path:Combine($mydir, 'old.xml')}" />

 

See also

pc:DeleteDirectories

files:FileExists