core/traits/CacheableTrait.php
public function deleteHasCache($key)
    {
        if ($this->isCachable()) {
            return Yii::$app->cache->delete($key);
        }
        
        return false;
    }
public function deleteHasCache($key)
    {
        if ($this->isCachable()) {
            return Yii::$app->cache->delete($key);
        }
        
        return false;
    }
public function deleteHasCache ( $ key ) { if ( $ this -> isCachable ( ) ) { return Yii :: $ app -> cache -> delete ( $ key ) ; } return false ; }
Remove a value from the cache if caching is enabled.

@param string|array $key The cache identifier
@return boolean Whether delete of key has been success or not
Remove a value from the cache if caching is enabled .