Reference

Guide

user.logout:after

$user, $session

Example

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