Red Deer realtor. Impact of Bankruptcy on license.

I am a real estate agent. With the downturn in the economy, my sales and commission cheques have been getting smaller. In order to make ends meet, I have not been paying my desk and advertising fees, and my agent paid the renewal on my license. I don’t expect it to turn around soon, and my brother has suggested I go bankrupt or file for bankruptcy. Can I keep my real estate license if I go bankrupt? And what happens to the amounts I owe my Agent?