These enclaves between India and Bangladesh - where one country's territory is inside another country have all been resolved by the Indo Bangla Land Boundary Agreement
The prime ministers of India and Bangladesh signed the Land Boundary Agreement in 1974 to exchange enclaves and simplify
their international border. A revised version of the agreement was adopted by the two countries on 7 May 2015, when the Parliament of India passed the 100th Amendment to the
Indian Constitution.
[4][5] Under this agreement, which was ratified on 6 June 2015, India received 51 Bangladeshi enclaves (covering 7,110 acres (2,880 ha)) in the Indian mainland, while Bangladesh received 111 Indian enclaves (covering 17,160 acres (6,940 ha)) in the Bangladeshi mainland.
[6] The counter-enclaves, together with Dahagram-Angarpota, will not be exchanged when the Indira-Mujib agreement of 1974 is finally implemented.
[2] The enclave residents are to be allowed to either reside at their present location or move to the country of their choice.
[7] The physical exchange of enclaves will be implemented in phases between 31 July 2015 and 30 June 2016.
[8] The enclaves stand exchanged on the midnight of 31 July 2015 and the transfer of enclave residents was completed on 30 November 2015.
[9] After the Land Boundary Agreement, India lost around 40 square kilometres (15 sq mi) to Bangladesh.
[10][11]
https://en.wikipedia.org/wiki/India–Bangladesh_enclaves