The deposit will be refunded, when you have completed the Danish Language Course. The language school confirms your payment by inviting you to join the class. The refund will take place within a month after completion. You may also have the deposit refunded if you complete a module test and not wish to continue.
Read more about the deposit here