src/UnsetDataCapableTrait.php
protected function _unsetData($key)
    {
        $store = $this->_getDataStore();

        try {
            $this->_containerUnset($store, $key);
        } catch (InvalidArgumentException $e) {
            throw $this->_createOutOfRangeException($this->__('Invalid store'),  null, $e, $store);
        } catch (OutOfRangeException $e) {
            throw $this->_createInvalidArgumentException($this->__('Invalid key'), null, $e, $key);
        }
    }
protected function _unsetData($key)
    {
        $store = $this->_getDataStore();

        try {
            $this->_containerUnset($store, $key);
        } catch (InvalidArgumentException $e) {
            throw $this->_createOutOfRangeException($this->__('Invalid store'),  null, $e, $store);
        } catch (OutOfRangeException $e) {
            throw $this->_createInvalidArgumentException($this->__('Invalid key'), null, $e, $key);
        }
    }
Unset data by key.

@since [*next-version*]

@param string|int|float|bool|Stringable $key The key of data to unset.

@throws InvalidArgumentException    If the key is invalid.
@throws OutOfRangeException         If the inner store is invalid.
@throws NotFoundExceptionInterface  If the key is not found.
@throws ContainerExceptionInterface If problem accessing the container.