Delete method logic changed.