You may have noticed that Colorful Cupcakes are the same colors as regular pieces. That's why you can get rid of them by making matches: Juice Boxes remove Blue Cupcakes, Apples remove Red Cupcakes, and so on.
Make two or three matches next to Cupcakes if they're decorated with icing and candy.