Mesh Delete
The blunt instrument, five ways to swing it
- BPY_OBJ
- BPY_OBJ
This is the one node in this cleanup family that actually removes geometry rather than merging or hiding it. It wraps Blender's bpy.ops.mesh.delete operator - the same one behind the X delete menu you'd hit in Blender's edit mode - and unlike most of Avatar Graph's other Mesh_* wrappers, it has one setting that genuinely changes the outcome: type.
What it actually does
Mesh_Delete removes whatever's currently selected in the mesh, and type decides how far the damage spreads beyond the exact selection:
VERT- deletes selected vertices, and takes any edges or faces built on them along for the ride. The biggest hammer of the five.EDGE- deletes selected edges and any faces using them, but leaves the vertices those edges connected to sitting there as loose points.FACE- deletes selected faces along with the edges and vertices that aren't shared with anything still remaining.EDGE_FACE- deletes edges and faces from the selection but keeps every vertex in place, even ones that end up isolated.ONLY_FACE- strips just the face "skin," leaving the underlying edges and vertices behind as a bare wireframe.
Which one you want depends entirely on whether you're trying to punch a hole clean through the mesh (VERT or EDGE) or peel away surface while keeping the wireframe intact (ONLY_FACE). This is deletion in the literal sense - a hole gets left behind unless something else fills it in afterward. If you actually want to simplify a mesh without leaving a hole, you want one of the pack's Dissolve nodes instead, not this one.
The inputs and outputs that matter
BPY_OBJ(optional) - the mesh with the selection to delete already made.type- one ofVERT,EDGE,FACE,EDGE_FACE,ONLY_FACE, choosing what gets removed and how much collateral geometry goes with it.
Output is a single BPY_OBJ, the mesh with the selected geometry (and whatever it dragged along) gone.
How to install it
Search Avatar Graph in ComfyUI Manager, or clone manually:
cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui
python -m pip install -r requirements.txt
then restart. bpy==3.6.0 is pinned in requirements.txt and needs Python 3.10.x specifically - the README's prebuilt Python-3.10 ComfyUI zip works on Windows, a dedicated conda environment (conda create --name comfyui python=3.10) is the reliable route on Mac/Linux. opencv-python, mediapipe, and segment-anything also install, unpinned.
Common issues & troubleshooting
Nothing gets deleted. This node only acts on whatever's currently selected - if a selection step upstream in your graph selected nothing, ran on the wrong object, or hasn't executed yet, there's nothing here for Mesh_Delete to remove. Trace your selection state back before assuming the node is broken.
You got a hole where you didn't want one. That's the difference between delete and dissolve - Mesh_Delete genuinely removes geometry and leaves an opening, it doesn't merge the surrounding faces to seal the gap. If the mesh needs to stay watertight, one of Mesh_DissolveEdges, Mesh_DissolveVerts, or Mesh_DissolveMode is almost certainly what you actually want.
Picked the wrong type and deleted more than expected. VERT in particular is aggressive - deleting a single vertex can take out every face touching it. If you only wanted to remove the face "skin" and keep the underlying wireframe, ONLY_FACE is the narrower option; reach for it deliberately rather than defaulting to VERT out of habit.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — | |
| typeopt | COMBO | 5 options: VERT, EDGE, FACE, EDGE_FACE, ONLY_FACE |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |