Helper/Data.php
public function disableConfigForWebsite($path)
    {
        $scopeId = 0;
        if ($website = $this->_request->getParam('website')) {
            $scope = 'websites';
            $scopeId = $this->storeManager->getWebsite($website)->getId();
        } else {
            $scope = 'default';
        }
        $this->resourceConfig->saveConfig(
            $path,
            0,
            $scope,
            $scopeId
        );
    }
public function disableConfigForWebsite($path)
    {
        $scopeId = 0;
        if ($website = $this->_request->getParam('website')) {
            $scope = 'websites';
            $scopeId = $this->storeManager->getWebsite($website)->getId();
        } else {
            $scope = 'default';
        }
        $this->resourceConfig->saveConfig(
            $path,
            0,
            $scope,
            $scopeId
        );
    }
public function disableConfigForWebsite ( $ path ) { $ scopeId = 0 ; if ( $ website = $ this -> _request -> getParam ( 'website' ) ) { $ scope = 'websites' ; $ scopeId = $ this -> storeManager -> getWebsite ( $ website ) -> getId ( ) ; } else { $ scope = 'default' ; } $ this -> resourceConfig -> saveConfig ( $ path , 0 , $ scope , $ scopeId ) ; }
Disable website config when the request is made admin area only!

@param string $path

@return null
Disable website config when the request is made admin area only!