delete based on session type and instance state