Take off the window and turn it upside down.Sounds as if the plugs/plug are missing and thats how they get in,Use the attachment hose fitting on a hoover and suck them out.Put tape on the holes to stop them getting in again.
The answer is like Jeff says but if there are two holes then you will gain little suction therefore you will need to cover the one hole (with your finger) whilst sucking with the vacuum cleaner through the other. It's best to re-seal the holes afterwards with the appropriate plugs for acryllic windows and have found a company that supplies these plugs in different sizes so you will need to measure the diameter of the holes first before ordering.
On our caravan, many of the trapped dead flies are too big to be sucked back out through the small holes they went in through. I guess some grew fat by eating each other. I figured what I might do is drill a new bigger hole, say 5/8" diameter (for which clear plastic bungs are available) near the bottom of the inner face of the window, and hoover them out that way. A hole that size also allows scope to reach in with a wire if some need dislodging from their grave. We have them in large numbers in all windows (by courtesy of previous owner removing the small bungs to ease condensation and not putting them back).
------------- If we poison this planet, we die. How dumb is that?
I would leave them where they are, there was a post on here a while ago by somebody who had cracked their window trying to suck them out with a vacuum cleaner. Plastic windows of this age become brittle so really any attempt to remove them or mess about with them for no reason may well result in them cracking so my advice would be to leave well alone. Mine is full of them but they do no harm, let them rest in peace.
Another alternative I guess is to buy some of the blue tinted plastic you can get for along the top of car windscreens, and apply a narrow band of it along the interior bottom edge of the windows, so light still comes in but the flies are less visible
------------- If we poison this planet, we die. How dumb is that?