decommission_device
Remove a device from your network after stopping services and removing from clusters, with optional service migration.
Instructions
Safely remove a device from the network infrastructure. Stops services, removes the device from clusters, optionally migrates services per migration_plan, then deletes the sitemap row. Use remove_device for inventory-only deletion of one row; use purge_devices for bulk filter-based inventory deletion; use decommission_device when host-side cleanup (stop services, remove from clusters) is required before deletion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, return a preview of what would be affected without executing any changes. | |
| device_id | Yes | Database ID of the device to decommission | |
| force_removal | No | Force removal without migration (data loss possible) | |
| validate_only | No | Only validate decommission plan without executing | |
| migration_plan | No | Plan for migrating services to other devices |