What is the best way to get rid of the ants from the box of clarified butter? The clarified butter is in a semi solid state in a transparent plastic box covered with a screw type lid.

I don't know how the ants went inside but now I can see those ants roaming inside the box - over and inside the clarified butter.

I was thinking of heating the butter and thus melting it down and then I could simply use a tea strainer to filter the ants out, but I think that this process will kill the ants and then I'll have dead bodies of ants and probably the juices from their bodies inside the butter which I find disgusting.

What is the way to get rid of them?
The best way to get rid of the ants? Toss the ants and the butter in the trash or a trash bag that you can quickly seal to prevent the ants from spreading around your house. Then, wash the container and check it for any holes or openings where the ants could have gotten in through (can do a water test - fill it with water and see if any water escapes). Then, go out and buy fresh butter.