src/Db/Collection/CollectionAbstract.php
public function deleteItems($pWithChilds = false)
    {
        foreach ($this as $item) {
            if ($item->getId()) {
                $item->delete($pWithChilds);
            }
        }

        return $this;
    }
public function deleteItems($pWithChilds = false)
    {
        foreach ($this as $item) {
            if ($item->getId()) {
                $item->delete($pWithChilds);
            }
        }

        return $this;
    }
public function deleteItems ( $ pWithChilds = false ) { foreach ( $ this as $ item ) { if ( $ item -> getId ( ) ) { $ item -> delete ( $ pWithChilds ) ; } } return $ this ; }
Delete all items from the database and reset the collection.

@param bool $pWithChilds Delete also all item's childs in other
collections
@return CollectionAbstract
Delete all items from the database and reset the collection .