{
  "risk_level": "High",
  "why": "The command combines sudo (root privileges) with rm -rf (unconditional recursive deletion) and a shell wildcard. A single path typo, unexpected symlink, or misexpanded variable could permanently destroy critical system files, other applications, or user data. Additionally, the '*' wildcard ignores hidden files, which may leave stale configurations that break the redeployment or cause permission conflicts.",
  "safer_process": "1. Explicitly verify the target path with 'ls -la /models/flight-recorder/app/' before running any deletion.\n2. Use an atomic staging approach: deploy new files to a temporary directory, verify they work, then safely replace the old directory using 'mv /tmp/new-app /models/flight-recorder/app'.\n3. If manual cleanup is necessary, use 'find /models/flight-recorder/app -mindepth 1 -delete' to remove contents without affecting the parent directory, or use 'trash-cli' for recoverable deletion.\n4. Always create a filesystem snapshot or backup before destructive operations, and consider containerization or deployment automation (e.g., Ansible, Docker, CI/CD) to eliminate manual file manipulation."
}