Find Files.delete(...) / Files.deleteIfExists(...) calls

Proprietary

Each call deletes a file from disk — a destructive filesystem operation. Flag as a seed for review of path provenance, e.g. whether the path is attacker-controlled and whether the deletion is intentional.

org.openrewrite.kotlin.search.FindFilesDelete$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.search.FindFilesDelete$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.