The amount of time it takes for a trapped fly to die can vary depending on the conditions. If the fly is trapped in a container with no access to food or water, it may die within a few days. However, if the fly has access to food and water, it may survive for up to a week.