Delete a host from the inventory (alias for remove-host)
Deletes a host from the inventory by removing its directory and files.
/plugin marketplace add dsyorkd/system-admin/plugin install dsyorkd-system-admin@dsyorkd/system-adminDelete a host from the system inventory by deleting its directory at context/hosts/{hostname}/.
Note: This command is an alias for /remove-host. Both commands use the same underlying tool.
This command orchestrates the host-management skill to delete hosts from the inventory.
Architecture:
Gather information from user or $ARGUMENTS:
Invoke the host-management skill's remove-host.sh tool:
./skills/host-management/tools/remove-host.sh --hostname <name> [--backup]
Read the JSON output from the tool to see:
Report to the user:
Example 1: Delete host without backup
User: /delete-host testserver
1. Run: ./skills/host-management/tools/remove-host.sh --hostname testserver
2. Read JSON output
3. Report: "Deleted testserver from inventory (4 files deleted)"
Example 2: Delete host with backup
User: /delete-host production-db --backup
1. Run: ./skills/host-management/tools/remove-host.sh --hostname production-db --backup
2. Read JSON output
3. Report: "Deleted production-db from inventory. Backup saved to context/backups/production-db_2026-01-05T12:00:00Z.tar.gz"
This ensures data integrity and provides recovery options if needed.