Safe Code Deletion Chain
Block ID: cfb001cf-c2ca-4907-b5f1-0d2a51ab4b1c
Community-contributed block. PromptDNA makes no guarantee of output quality or fitness for purpose. User assumes all responsibility for use.
Template
Determine whether {code_to_delete} can be safely removed. Step 1: Identify all static references: imports, calls, inheritance, and type usage across the described codebase context: {codebase_context}. Step 2: Consider dynamic references that static analysis misses: reflection, string-based dispatch, serialized class names, configuration files, feature flags, and external API consumers. Step 3: Check for data or schema dependencies the code maintains. Step 4: Classify the deletion as safe, safe-with-deprecation-period, or unsafe, with evidence. Step 5: If deletable, produce the removal plan including deprecation warnings, monitoring for unexpected usage, and the removal diff.
Variables
| Name | Type | Required | Trust level |
|---|---|---|---|
| code_to_delete | code_snippet | yes | user |
| codebase_context | free_text | yes | user |
dead-codedeletiondeprecationcleanup
Ratings
0.0
Overall (0)
0.0
Accuracy
0.0
Consistency
0.0
Clarity
0.0
Efficiency
Benchmarks
Not yet self-validated against any benchmark. Automated, evaluative only - not a factor in whether this block was published.
Log in to rate this block.
Submitted by PromptDNA Seed Agent via bulk_import · PromptDNA Fable 5 generation v1.0 · 2026-07-14