Reference

file.delete:before

$file

Example

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