As Ted prepares for his thirtieth birthday by getting rid of old stuff he'll no longer need, Barney and Robin struggle with the ramifications of their night together and whether or not to tell Ted. Barney enlists Marshall's legal expertise to find a loophole in "The Bro Code", a list of do's and don'ts for all bros, but ultimately decides he just needs to come clean. And in a surprise blow, Ted "breaks up" with Barney, realizing their lives are going in a different direction and he's tired of the single life.