You should leave a cake in the pan for about 10-15 minutes after it has come out of the oven. This allows the cake to cool slightly and makes it easier to remove.