How to clear all files?

How to clear all files?

Code in view


<?php

    $this->registerCssFile('/colorbox-master/example1/colorbox.css');


    $this->registerJsFile('/colorbox-master/jquery.colorbox.js',

    ['depends' => [\yii\web\JqueryAsset::className()]]);


    $this->registerJsFile('/js/code.js',

    ['depends' => [\yii\web\JqueryAsset::className()]]);

?>

Need to create a button in the admin panel

What do you mean by clear all files?

js, image, css - all

Just delete everything within @web/assets.

Need to clear the cleaning by clicking on the button