In the article I saw, it said that the account had identifying information, and the posts were deleted but archived.
My interpretation is that the campaign of Janet Mills -- his primary rival -- found all of this during opposition research and then sent it to CNN.