{
  "risk_level": "high",
  "why": "The command combines sudo (root privileges) with rm -rf (recursive, forced deletion) and a shell wildcard. If the path is mistyped, the working directory is incorrect, or the shell expands unexpectedly, it can irreversibly delete critical system files, configurations, or other applications. Additionally, the * wildcard does not match hidden files (dotfiles), leaving stale or potentially insecure files behind. Running destructive commands as root on a server significantly increases the blast radius of human error.",
  "safer_process": "1. Verify the target directory contents first: `ls -la /models/flight-recorder/app/`\n2. Use a safer deletion method that avoids shell expansion issues and handles hidden files: `sudo find /models/flight-recorder/app -mindepth 1 -delete`\n3. Alternatively, recreate the directory cleanly: `sudo rm -rf /models/flight-recorder/app && sudo mkdir -p /models/flight-recorder/app`\n4. Automate deployments using version control, CI/CD pipelines, or containerization instead of manual file deletion.\n5. Always test destructive commands in a staging environment or with `echo`/`ls` first, and maintain recent backups."
}