{
  "risk_level": "high",
  "why": "Combines sudo (root privileges) with rm -rf (forceful recursive deletion) and a wildcard. A single path typo, unexpected symlinks, or misconfigured permissions could cause irreversible data loss or system instability. Using sudo for application-level cleanup also violates least-privilege principles and increases the blast radius of human error.",
  "safer_process": "1. Verify directory ownership and remove sudo if the deploying user has appropriate permissions. 2. Preview target files with ls -la /models/flight-recorder/app/ before deletion. 3. Use safer bulk removal like find /models/flight-recorder/app -mindepth 1 -delete or rsync --delete to a staging directory. 4. Adopt atomic deployment patterns: deploy to a new versioned directory, then update a symlink or config pointer, enabling instant rollback without in-place deletion."
}