src/Liip/Drupal/Modules/Registry/Drupal/D7Config.php
public function destroy()
    {
        $this->registry[$this->section] = array();
        $dcc = $this->getDrupalCommonConnector();

        $dcc->variable_del($this->section);

        $content = $dcc->variable_get($this->section, array());

        if (!empty($content)) {
            throw new \InvalidArgumentException(
                "Section $this->section could not be destroyed from the registry."
            );
        }
    }
public function destroy()
    {
        $this->registry[$this->section] = array();
        $dcc = $this->getDrupalCommonConnector();

        $dcc->variable_del($this->section);

        $content = $dcc->variable_get($this->section, array());

        if (!empty($content)) {
            throw new \InvalidArgumentException(
                "Section $this->section could not be destroyed from the registry."
            );
        }
    }
public function destroy ( ) { $ this -> registry [ $ this -> section ] = array ( ) ; $ dcc = $ this -> getDrupalCommonConnector ( ) ; $ dcc -> variable_del ( $ this -> section ) ; $ content = $ dcc -> variable_get ( $ this -> section , array ( ) ) ; if ( ! empty ( $ content ) ) { throw new \ InvalidArgumentException ( "Section $this->section could not be destroyed from the registry." ) ; } }
Deletes the current registry from the database.

!! Use with caution !!
There is no rollback.

@throws \Assert\InvalidArgumentException in case the operation failed.
Deletes the current registry from the database .