<?php

/**
 * Destroy all deleted site ids
 *
 * @param string $project - Project data, JSON Array
 */

QUI::getAjax()->registerFunction(
    'ajax_trash_clear',
    static function ($project): void {
        $Project = QUI::getProjectManager()->decode($project);
        $Trash = $Project->getTrash();

        $Trash->clear();
    },
    ['project'],
    'Permission::checkAdminUser'
);
