Unfortunately the government fees for a trademark filing are never refundable.
When a trademark application is filed, the government fees are paid. Once they are paid, they are not refunded for any reason.
If your application is filed incorrectly (for the wrong goods, for the wrong trademark or in the wrong name) and you decide to “cancel” it, the Trademarks Office will not refund you the government fees that you paid.
So file wisely, or better yet, seek help of a trademark professional to make sure your application is filed correctly.
To open in a new tab, click: Will the Trademark Office refund the government fees if my trademark is refused?