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