public function clearNamespace()
    {
        if (! $this->enabled) {
            return;
        }
        $error = false;

        set_error_handler(function () use (&$error) {
            $error = true;
        }, E_WARNING);

        foreach (glob($this->getPath() . '/*.dat') as $file) {
            unlink($file);
        }
        restore_error_handler();

        return ! $error;
    }