WendyOS Docs
Wendy CLIdevice

wendy device unenroll

Unenroll a device and remove it from Wendy Cloud

Syntax

wendy device unenroll [flags]

Examples

wendy device unenroll --help

Arguments

No positional arguments are declared in the command synopsis.

Flags

Flags below include inherited options. Types and defaults come from the CLI source. An empty default means no value is configured.

FlagTypeDefaultDescription
--asset-idstring(empty)Exact Cloud asset UUID to unenroll or reconcile (v2 UUID enrollments only); must match the device's Cloud binding
--checkboolfalseOnly verify the Cloud binding and the Agent's authenticated-reset support, or with --force its local-reset support; change nothing (v2 UUID enrollments only)
--cloud-grpcstring(empty)Cloud gRPC endpoint for cleanup (cloud-only uses the selected auth session; local WendyOS uses its enrolled cloud host)
--cloud-onlyboolfalseRemove the cloud enrollment without contacting or resetting the device; --device accepts an asset ID, name, or PKI device ID
--devicestring(empty)Target device host (hostname, IP, or host:port); 'wendy run' accepts a comma-separated list to deploy one build to several devices (needs a remote build host and --detach). Defaults to $WENDY_DEVICE, then the saved default device
--forceboolfalseClear only the local enrollment of a device Cloud has no record of; does not revoke its certificate or delete a Cloud record (v2 UUID enrollments over direct LAN only)
--jsonboolfalseOutput in JSON format
--yesboolfalseSkip the confirmation prompt

Output

Output depends on the operation and selected target. Command behavior and detailed examples.

JSON output

The global --json option requests machine-readable output. The CLI also selects JSON mode when no interactive terminal is attached. Support and payloads are command-specific; this flag does not guarantee a single JSON document for commands that stream logs or invoke build tools. Consult Details before parsing command output.

Exit codes

The CLI entry point returns 0 on success and for its user-cancelled or default-cleared results. Other returned errors exit with 1 and print a diagnostic to stderr. Some operations may terminate through subprocess or signal handling; do not infer application health from the CLI exit code alone.

Common errors

Check argument values and flag combinations against the synopsis above. For discovery, build, port, and readiness failures, see deployment troubleshooting. Command-specific constraints are in Details.

See also

Details

Reverses 'wendy device enroll'. For a UUID/direct PKI device reached over direct LAN mTLS, Cloud revokes its certificate and deletes the asset, then the device verifies Cloud's signed reset authorization and erases its credentials; it can then enroll again. Agents without Cloud-authenticated reset support are refused before any change. If Cloud has no record of such a device, --force clears only its local enrollment over that connection; this needs Agent local-reset support, refuses a device Cloud still lists, and does not revoke certificates or delete Cloud records. Numeric legacy enrollment retains its separate cleanup path. For Wendy Lite over USB, removes the cloud enrollment, clears the board's identity and reboots it while preserving Wi-Fi and apps. Requires firmware with enrollment reset support. Use --cloud-only or 'wendy cloud device unenroll' to remove an offline device by asset ID or name without contacting it.

Command behavior and detailed examples

On this page