{
  "risk_level": "High",
  "why": "Combining sudo with rm -rf executes irreversible, non-interactive deletion with root privileges. The * glob does not match hidden files (dotfiles), which can leave stale configurations or state files that break redeployment. If the path is a symlink or mistyped, it could traverse and delete critical system directories. Manual deletion also lacks backup, verification, and rollback capabilities, increasing the risk of data loss and permission mismatches.",
  "safer_process": "1. Verify the target path first: ls -la /models/flight-recorder/app/. 2. Avoid sudo if possible; use the application's dedicated user account to prevent system-wide permission issues. 3. Create a quick backup before deletion: tar -czf /tmp/app-backup-$(date +%F).tar.gz /models/flight-recorder/app/. 4. Use find to safely remove all contents including hidden files: find /models/flight-recorder/app/ -mindepth 1 -delete. 5. Prefer automated deployment tools (e.g., Docker, Ansible, CI/CD pipelines) that handle atomic updates, versioning, and automatic rollbacks instead of manual file manipulation."
}