jamf_pro_sdk.models.pro.mdm.EraseDeviceCommand

pydantic model EraseDeviceCommand

MDM command to remotely wipe a device. Optionally, set the returnToService property to automatically connect to a wireless network at Setup Assistant.

command = EraseDeviceCommand()
command.pin = "123456"
command.obliterationBehavior = EraseDeviceCommandObliterationBehavior.ObliterateWithWarning

Alternatively, unpack a dictionary:

command = EraseDeviceCommand(
    **{
        "pin": "Please return me to my owner.",
        "obliterationBehavior": "ObliterateWithWarning"
    }
)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

field commandType: Literal['ERASE_DEVICE'] = 'ERASE_DEVICE'
field preserveDataPlan: bool | None = None
field disallowProximitySetup: bool | None = None
field pin: Annotated[str, StringConstraints(strip_whitespace=None, to_upper=None, to_lower=None, strict=None, min_length=6, max_length=6, pattern=None)] | None = None
field obliterationBehavior: EraseDeviceCommandObliterationBehavior | None = None
field returnToService: EraseDeviceCommandReturnToService | None = None