Yes, you can refund. follow the same above steps. If you have family under your sponsorship, you should deposit Dh3020 for each. Then you can refund your visa deposit.
You cannot refund your deposit if there is an overstay or other violation in your company file.