Delete Segment
delete_segmentRemove a memory segment from an IDA Pro database by specifying any address inside it; optionally set deletion flags or disable addresses instead of deleting.
Instructions
Delete a memory segment from the IDB.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "delete_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | Deletion flags (0=normal, 1=SEGMOD_KILL: disable addresses) | |
| address | Yes | Any address within the segment to delete (hex string) | |
| timeout | No | Timeout in seconds | |
| instance_id | No | REQUIRED whenever more than one database is open (from open_database's result or list_databases()); optional only while exactly one instance is live. |