src/CFDIReader/CFDICleaner.php
public function removeAddenda()
    {
        $prefix = $this->dom->lookupPrefix('http://www.sat.gob.mx/cfd/3');
        $query = '/' . $prefix . ':Comprobante/' . $prefix . ':Addenda';
        $addendas = $this->xpathQuery($query);
        if ($addendas->length == 0) {
            return;
        }
        for ($i = 0; $i < $addendas->length; $i++) {
            $addenda = $addendas->item($i);
            $addenda->parentNode->removeChild($addenda);
        }
    }
public function removeAddenda()
    {
        $prefix = $this->dom->lookupPrefix('http://www.sat.gob.mx/cfd/3');
        $query = '/' . $prefix . ':Comprobante/' . $prefix . ':Addenda';
        $addendas = $this->xpathQuery($query);
        if ($addendas->length == 0) {
            return;
        }
        for ($i = 0; $i < $addendas->length; $i++) {
            $addenda = $addendas->item($i);
            $addenda->parentNode->removeChild($addenda);
        }
    }
Procedure to remove the Comprobante/Addenda node

@return void