Implementation of DeleteWhenViewed Feature