If you get pregnant

I know it’s not likely to get pregnant but if you have gotten pregnant on the IUD what did your dr do with it? Do they take it out or leave it in? I know it sounds dumb but I was just curious. 😂