Hi Yedidyah,

I am thinking to do below -

# hosted-engine --set-maintenance --mode=global
# hosted-engine --clean-metadata --host-id=<old_host_id> --force-clean"

I hope it is safe and tested ?

Thanks

On Thu, Feb 3, 2022 at 12:17 PM Yedidyah Bar David <didi@redhat.com> wrote:
On Thu, Feb 3, 2022 at 5:53 AM Ayansh Rocks
<shashank123rastogi@gmail.com> wrote:
>
> Hi All,
>
> How to clean stale hosted engine from the database. I want to remove host id=3

Perhaps by using the options '--clean_metadata' and '--host-id'
of the command 'hosted-engine'.
You can check documentation, list archives, etc. for details.

Good luck and best regards,
--
Didi