Maybe you forgot to grease your cake pan. Maybe you simply greased it improperly, with the wrong ingredients, such as salted butter (unsalted.
The cookies never stick and they also brown more evenly. You can also use parchment paper or foil to line cookie sheets or cake pans for easy removal.
Baking a cake can be very rewarding, but there's nothing as disappointing as pulling it from the oven only to have it fall apart when you lift it from the pan.
How To Remove A Cake From A Pan
Removing cake from pan - still
Stupidly forgot to line the pan - had a flexible flipper that did the trick. If this still doesn't work, turn the pan right side up and bash the side against a countertop. Gently flip it so it is right side up on the cooling rack. Follow amazing home cooks. Then gently shake the pan so the bread loosens and invert onto a wire rack. So, I switched to Pillsbury white cake mix and have not had a problem. You deserve a cookie.