bmesh – deleting by mode (context)
To remove vertices, edges or polygons from a bmesh object, it is most convenient to use the remove() method for the corresponding set of elements. In addition, the bmesh object has a bmesh.ops.delete() operator, which allows us to delete elements using different modes (context).