# must be in edit mode.must be in edit mode for these options, other options for types are found by reading the tooltips in the delete menu.
# first select the face, then delete it.
mplane.data.faces[-1].select = True # won't show in viewport
bpy.ops.mesh.delete(type='ONLY_FACE') # will be acted on.