Capy-Bearer Documentation

file_unlink

host call

Capy

function file_unlink(path : string)

Description

file_unlink removes a file. A missing path does not cause an error.

Parameters

path : file path

Return Values

No value.

Example

Capy

file_put_contents("/tmp/doc-unlink.txt", "x")
file_unlink("/tmp/doc-unlink.txt")
print(file_exists("/tmp/doc-unlink.txt"), "\n")