src/apis/StorageController.php
public function actionFilemanagerRemoveFiles()
    {
        $this->checkRouteAccess(self::PERMISSION_ROUTE);
        $pageId = Yii::$app->request->post('pageId', 0);
        $folderId = Yii::$app->request->post('folderId', 0);
        foreach (Yii::$app->request->post('ids', []) as $id) {
            if (!Storage::removeFile($id)) {
                return false;
            }
        }
        $this->flushApiCache($folderId, $pageId);
        return true;
    }
public function actionFilemanagerRemoveFiles()
    {
        $this->checkRouteAccess(self::PERMISSION_ROUTE);
        $pageId = Yii::$app->request->post('pageId', 0);
        $folderId = Yii::$app->request->post('folderId', 0);
        foreach (Yii::$app->request->post('ids', []) as $id) {
            if (!Storage::removeFile($id)) {
                return false;
            }
        }
        $this->flushApiCache($folderId, $pageId);
        return true;
    }
public function actionFilemanagerRemoveFiles ( ) { $ this -> checkRouteAccess ( self :: PERMISSION_ROUTE ) ; $ pageId = Yii :: $ app -> request -> post ( 'pageId' , 0 ) ; $ folderId = Yii :: $ app -> request -> post ( 'folderId' , 0 ) ; foreach ( Yii :: $ app -> request -> post ( 'ids' , [ ] ) as $ id ) { if ( ! Storage :: removeFile ( $ id ) ) { return false ; } } $ this -> flushApiCache ( $ folderId , $ pageId ) ; return true ; }
Remove files from the storage component.

@todo make permission check.
@return boolean
Remove files from the storage component .