Added delete function and identified the deletable object but unable to delete