The answer depends on a few factors, including the laws in your area and the animal's condition. Generally, it's best not to keep an animal in a trap for more than 24 hours. This gives you time to check with local authorities to ensure you're relocating the animal correctly and prevents the animal from suffering unnecessarily. If the animal is injured or otherwise in poor health, it's best to release it immediately.