delete close function activity