I was exactly in your position a few months ago. I owned a small company Sole shareholder and director.
Closed it but had 200k in the bank account after all debts,tax, staff redundancy paid.
Now , there is a sort of redundancy for people in your position. Windup refers to it - it is tax-free "termination of employment payment". The rules are a bit complicated but -very roughly - the amount you can take out depends on the number of years you've had the company/been a proprietory director.
However, the company does not get back any refund from the govnt -unlike the situation where you make your staff redundant in which case the company gets back 60% of the statutory redundancy payment.
You should google "termination of employment payment." Anyway I took out 60k tax-free which was allowed (Revenue have to authorise it).
But I still had 140k in the company . And this was my money- exactly the amount I put in this company nine years ago. But ,legally, I could not just take it out .
You just cannot take out money from your company. The company has to be liquidated - and I had to go through a members voluntary liquidation in order that the company was properly closed and the money distributed to the shareholders (i.e. me). Again ,google "members voluntary liquidation."
Of course, if you take out money on the bais of the termination payment -and there's nothing left in the company then you can quickly and cheaply get bthe company stricken-off -again,google "strike-off".
You cannot strike-off a company if it has debts or assets.
In my case I could not get my company stricken off because it had one big asset - cash.
Now, after studying a bit about this on google (check you arev looking at irish sites) and some of the posts in AAM you then do what previous posters advise - and get a good accountant.
The important thing is -just dont take money out of the company even if it is "yours".
there will be tax implications.