you could pass a law that says any foreign criminal who after serving their sentence if their home country refuses their deportation then they will be held in indefinite detention until their home country acquiesces, from there you stop issuing further visas, cancel existing visas/ilr and intern them, start freezing assets, withdraw diplomats, speak in favour of their reginal opponents and arm/fund them, ban remittances and so on
United Kingdom