delete Objects by Script

I thought deleting Objects by a Script is not possible yet. But what’s about this:

Obj = Object.getSelected()[0]
Scene.getCurrent().unlink(Obj)

Does this not delete an Object?
Thx, Doc

Nope! Take a look to the OOPS tree (the ‘scene’ icon activated), while you execute that.

Ah! I understand. The Object is now only marked as ‘unused’, right? But after saving and reloading, this Objects are removed. Hm … that’s ok for me.
Thanx, Doc