Remove inaccessible Mongo shard

I am trying to delete the Shard which is in accessible, can. you please provide the steps for the same

Hi @nanda1212

It’s been a while since you posted this. If I understand correctly, you want to delete an inaccessible shard? Short answer is, you cannot do this. The procedure to remove a shard is not very simple (https://www.mongodb.com/docs/manual/tutorial/remove-shards-from-cluster/) and it involves moving all data from the to-be-removed shard and distributing them to the remaining shards. If MongoDB allows you to just remove the inaccessible shard, you will lose data.

Best regards
Kevin