purge_failed_discoveries
Remove failed discovery entries from sitemap by deleting rows with error status or invalid hostnames. Use dry_run to preview deletions without committing.
Instructions
Remove sitemap rows for devices where discovery failed (status='error' or empty/null/'unknown' hostname). Pass dry_run=true to preview the removal candidates without deleting them. (Equivalent to purge_devices with the failed-discovery filter — preserves the 4-clause OR semantics; bare purge_devices(filter_type='status', value='error') matches ONLY status='error' rows, NOT zombie hostnames.) 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 removal candidates without deleting (default: false) |