added deleteobject.