Implements hook_user_delete().
function statistics_user_delete($account) { db_delete('accesslog') ->condition('uid', $account->uid) ->execute(); }