sanitize method

On this page

sanitize

Removes writable metadata properties from the package.

The operation is recursive so it affects all nested packages as well.

def sanitize(self):
    ...

Returns: int: The number of affected properties.

Example

    with Metadata(input_path) as metadata:
        affected = metadata.sanitize()
        metadata.save(output_path)
    ```

### See Also
* class [`PresentationInspectionPackage`](/metadata/python-net/groupdocs.metadata.formats.document/presentationinspectionpackage/)

On this page