Skip to content

Kirby 3.7.3

file.delete:before

/site/config/config.php
return [
    'hooks' => [
        'file.delete:before' => function (Kirby\Cms\File $file) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$file Kirby\Cms\File