How to delete a camera from the script in blender 2.49b???

Hi,
I am having a problem with deleting a camera from my scene from the script: I know that the camera is an object and can be treated like any other object ( mesh, lamp,…) but when I try deleting is using the code below it won’t recognize the cam data object as an object ???

for cam in Camera.Get():
Scene.GetCurrent().unlink(cam)

the last line error says: expected object argument

any idea why this is happening???

Then make Blender happy by supplying an object to delete like this:

def Del_cams():
    for cam in Camera.Get():
        ob = Object.Get(cam.name)
        Scene.GetCurrent().objects.unlink(ob)
    Window.RedrawAll()

Regards,

I think then we have to make blender happy. Thanks for your reply. It worked