Why can't the original cluster be found after reinstalling tiup for a cluster created using tiup?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 使用 tiup 创建的集群,重新安装tiup 发下找不到原来的集群?

| username: TiDBer_bGjah8qy

After deleting the $HOME/.tiup directory and reinstalling a new tiup, the original cluster information cannot be found through tiup cluster. How should this be handled?

| username: Ti青涩 | Original post link

Are you trying to create two clusters?

| username: hey-hoho | Original post link

Refer to this:

| username: TiDBer_bGjah8qy | Original post link

Accidentally deleted it, and the newly installed tiup cannot see the old cluster information.

| username: TiDBer_bGjah8qy | Original post link

Will tiup cluster deploy overwrite the data of the existing cluster?

| username: Ti青涩 | Original post link

I looked at that post, it shouldn’t overwrite, but it’s better to verify in a test environment.