<?php

namespace EHxMe\Classes;

use EHxMe\Helpers\Helper;

if (!defined('ABSPATH')) {
    exit;
}

class DeactivationHandler
{    
    /**
     * handle
     *
     * @return void
     */
    public static function handle()
    {
        flush_rewrite_rules();

        foreach (array_keys(Helper::customRoles()) as $role) {
            remove_role($role);
        }
    }
}
