delete function updated.

Change-Id: I04506f20231c1d6f0153f70d7ac1415f0a5ff51a