If you withdraw your application, the cost won't be refunded. There is just one exception: when you withdraw your application just before or at the least on the exact same day as the amount was paid on the EUIPO, the payment will be refunded (the working day of payment towards the EUIPO might vary based on the method of spending, see the Rules, Ref