decommission_device
Safely remove a device from the network by stopping services, removing it from clusters, optionally migrating services, and deleting its configuration.
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 |
|---|---|---|---|
| device_id | Yes | Database ID of the device to decommission | |
| migration_plan | No | Plan for migrating services to other devices | |
| force_removal | No | Force removal without migration (data loss possible) | |
| validate_only | No | Only validate decommission plan without executing | |
| dry_run | No | If true, return a preview of what would be affected without executing any changes. |