Delete Curve Point by Script

hi,

does anyone know the correct syntax for deleting curve point selections?

for polygons it works like this

 elif face_sel:
                bpy.ops.mesh.delete(type='FACE')

how would this have to look for curve points?

i tried this but it doesn’t work

elif curve_sel:
                bpy.ops.curve.delete(type='VERT')

cheers christian

oh, what i’m looking for is just the right command for the first part
“curve_sel” seems to be wrong … i also tried vert_sel but it is wrong as well and i’ve got no clue for what to search on google or the blender api

okay, it doesn#t work because i have another command that deals with vert before obviously :confused:

if i have a polygon vertex selection i would like this to happen

if vert_sel:
bpy.ops.mesh.dissolve_verts()

if i have a curve selection this:

elif vert_sel:
bpy.ops.curve.delete(type=‘VERT’)

is this possible in one single script?

sorry for the confusion