Add code to clear connection type directives

Add explicit code [All] or [Any] to clear connection type directives.