Skip to content

Kirby 5.0.4

F::remove()

Deletes a file

F::remove(string $file): bool

Parameters

Name Type Default Description
$filerequired string no default value The path for the file

Return type

bool

Parent class

Kirby\Filesystem\F

Examples

$remove = F::remove('test.txt');
if ($remove) echo 'The file has been removed';