Disable yii\web\JqueryAsset on yii\web\AssetBundle

Hello, my app need to disable yii\web\JqueryAsset. It simple to config file

‘components’ => [

    'assetManager' => [


        'bundles' => [


            'yii\web\JqueryAsset' => false,


        ],


    ],


],

Now i want to disable in code

Example: with class AppAsset extends from AssetBundle. I want to disable asset here.

OK i fix it by add Yii::$app->assetManager->bundles[‘yii\bootstrap\BootstrapAsset’]= false. thank