Delete functipn done

FIXME : remove object from the objects array