Skip to content

Kirby 4.2.0

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