Thank you for your query.
Yes the Home Office can revoke your indefinite leave to remain and the relevant law is set out below.
Section 76 gives the Secretary of State the power to revoke indefinite leave to enter or remain in the United Kingdom where: 1) a person is liable to deportation, but cannot be deported for legal reasons; 2) leave was obtained by deception; or 3) a person, or someone of whom they are a dependant, ceases to be a refugee as a result of the person’s own actions by:a) voluntarily availing themselves of the protection of their country of nationality; b) voluntarily re-acquiring a lost nationality; c) acquiring the nationality of a country other than the United Kingdom and availing themselves of its protection; or d) voluntarily establishing themselves in a country in respect of which they were a refugee
You can find further information by reading this: Revocation of refugee status - Gov.uk
I believe that I have answered your question so please do not forget to rate my answer.
I believe I answer your question as I stated yes the home office can revoke your indefinite leave to remain. I have set out the law for.you as well. If you read Section 76 your ILR can be revoked for obtaining your national passport and returning to Ghana. Please this law:
acquiring the nationality of a country other than the United Kingdom andavailing themselves of its protection
The guidance is very clear.
It says if you had travelled to your home country more than five years ago then ILR would not normally be revoked. It also states that each case will be considered on its merits.
As you are looking to go now, the passage of time does not really apply to your case. But as stated above, the Home Office will consider each case on its own merit.