Added object delete function.
Added object delete function.