Overview
The Remove Analysis features allow you to clean up and remove analysis data that xAnalyzer has added to your code. This is useful when you want to re-analyze code with different settings, remove outdated analysis, or simply start fresh.Removing analysis does not affect the actual code or executable - it only removes the comments, labels, and other annotations that xAnalyzer added during analysis.
Available Removal Options
xAnalyzer provides three removal scopes that mirror the analysis options:Remove Analysis from Selection
Removes analysis data only from the currently selected instructions in the disassembly window.Remove Analysis from Function
Removes all analysis data from the entire function containing your current instruction.Remove Analysis from Module
Removes all analysis data from the entire module, clearing all xAnalyzer comments and labels.How to Remove Analysis Data
Using the Context Menu
Select your scope
Depending on what you want to remove:
- For selection removal: Select the instructions you want to clean
- For function removal: Click any instruction within the function
- For module removal: Click anywhere in the module
Choose remove option
Navigate to Plugins → xAnalyzer → Remove Analysis, then select:
- Remove Analysis from Selection
- Remove Analysis from Function
- Remove Analysis from Module
Using Commands
You can use the x64dbg command line to remove analysis data:Using Hotkeys
Set up keyboard shortcuts for faster access:What Gets Removed
When you remove analysis, xAnalyzer cleans up:Auto Comments
- Function argument descriptions
- API call prototypes
- Data type information
- Parameter values and names
- Loop markers and labels
Auto Labels
- Loop entry/exit labels
- Function call labels
- Data reference labels
- Jump destination labels
Clear Behavior
The removal respects your configuration settings: Clear Auto Comments: When enabled, removes all automatic comments added by xAnalyzer. Clear Auto Labels: When enabled, removes all automatic labels added by xAnalyzer. Clear User Comments: When enabled, also removes user-added comments (use with caution!). Clear User Labels: When enabled, also removes user-added labels (use with caution!).Configuration Options
Configure what gets removed during cleanup:Configure clear options
Toggle these options based on your needs:
- Clear Auto Comments: Remove xAnalyzer’s automatic comments
- Clear Auto Labels: Remove xAnalyzer’s automatic labels
- Clear User Comments: Remove manually added comments (careful!)
- Clear User Labels: Remove manually added labels (careful!)
Configuration Options
Learn more about xAnalyzer configuration settings
Example: Before and After Removal
Before removal (with xAnalyzer analysis):Common Use Cases
Re-analyzing with Different Settings
Cleaning Specific Functions
When you want to manually document a function but xAnalyzer’s comments are in the way:Selective Cleanup
For partial cleanup of a selection:Best Practices
Configure clear options carefully: Review the clear options in xAnalyzer settings before performing large-scale removals to ensure you don’t accidentally delete your own comments or labels. Use removal before re-analysis: When changing xAnalyzer settings significantly, remove the old analysis first to avoid confusion from overlapping or conflicting annotations. Check the log: After removal, check the x64dbg log window for confirmation messages and any warnings about what was removed.Removal vs. Re-analysis
When to remove first
When to remove first
- Changing major configuration options (e.g., enabling Extended Analysis)
- Switching between defined and undefined function analysis
- Starting a fresh analysis session
- Creating manual documentation
When direct re-analysis is okay
When direct re-analysis is okay
- Minor setting adjustments
- When “Clear Auto Comments/Labels” options are enabled
- Quick iterative analysis during debugging
- When you want to preserve some existing annotations
Limitations
Removal operations cannot be undone. Make sure to save your x64dbg database before removing analysis if you might want to restore it later.
Related Features
Analyze Selection
Analyze selected instructions
Analyze Function
Analyze an entire function
Analyze Module
Analyze the entire module
Commands Reference
View all xAnalyzer commands
