Delete Object

Hi.
What I wand to do is to delete an object and with the linked Mesh , Ipo… Just everything that is linked to an Object.

I tried the Scene.unlink but this just unlink the object from the scene. Also The Mesh.Unlink does not exists. It is in the Blender 2.42a Api documentation but it is not in the functional api of Blender 2.42a.

Thanks.

you cant. blender manages data references, and removes data when nothing is using it.