Skip to content

Kirby 3.9.8

FileRules::delete()

Validates if the file can be deleted

FileRules::delete(Kirby\Cms\File $file): bool

Parameters

Name Type Default
$file * Kirby\Cms\File

Return type

bool

Exceptions

Type Description
Kirby\Exception\PermissionException If the user is not allowed to delete the file

Parent class

Kirby\Cms\FileRules