where would they ship that person out to? CUBA? Sure Inida in that instance will not take the person back.
Any two countries may have had a mutual agreement for a long time on such matter.
India can deport a person of US origin to the USA even that person gives his US citizenship. So two countries usually cooperate in this respect