{
  "risk_level": "High",
  "why": "The command combines sudo (root privileges) with rm -rf (irreversible recursive deletion). The trailing glob (*) can behave unpredictably if the directory is empty or contains symlinks, potentially leading to accidental deletion of critical system files or unintended paths. Executing this during redeployment without stopping the service or verifying the exact path risks data loss, service disruption, or catastrophic system damage.",
  "safer_process": "1. Stop the service first (e.g., systemctl stop flight-recorder). 2. Verify the target path exists and is correct (ls -ld /models/flight-recorder/app). 3. Use a safer deletion method that preserves the parent directory: find /models/flight-recorder/app -mindepth 1 -delete. 4. Avoid sudo by managing permissions with a dedicated service user. 5. Use automated deployment tools (Ansible, Docker, CI/CD pipelines) that handle cleanup, backups, and atomic rollbacks safely."
}