Skip to content

Kirby 3.5.7.1

file.delete:before

$file

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