sanitize method

On this page

sanitize

Removes writable metadata properties from the package recursively, affecting all nested packages.

def sanitize(self):
    ...

Returns: int: The number of affected properties.

Example

    from groupdocs.metadata import Metadata

    with Metadata("input.jpg") as metadata:
        removed = metadata.sanitize()
        print(f"Removed {removed} properties")
    ```

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

On this page