At least in the 1805 campaign, the Italian Corps belongs to, well, Italy. It’s a protectorate unit, and as such undetachable by any legal means. The “autojoin” exploit doesn’t work for Corps, so you are technically *%_ed. But you are not alone, I made that mistake once.