PharData::delMetadata

Deletes the global metadata of a zip archive

&reftitle.description; public `true` `PharData::delMetadata` &phar.write;

Deletes the global metadata of the zip archive

&reftitle.parameters;

&reftitle.returnvalues;

&return.true.always;

&reftitle.errors;

Throws `PharException` if errors occur while flushing changes to disk.

&reftitle.examples;

### A `PharData::delMetaData` example

    <?php
    try {
        $phar = new PharData('myphar.zip');
        var_dump($phar->getMetadata());
        $phar->setMetadata("hi there");
        var_dump($phar->getMetadata());
        $phar->delMetadata();
        var_dump($phar->getMetadata());
    } catch (Exception $e) {
        // handle errors
    }
    ?>

&example.outputs;

    NULL
    string(8) "hi there"
    NULL

&reftitle.seealso;

- `Phar::delMetadata`