added delete function to cleanup

Change-Id: I4a4e38fb1d2a39d1d07e05b694c6439d78f2443e