There are a few different ways to eject a gun magazine, depending on the type of gun. For example, with a semi-automatic pistol, you would likely release the magazine by pressing the release button, which is usually located on the side of the gun near the grip. With an AR-15 rifle, you would probably push down on the release latch located at the bottom of the magazine well. Some guns have a thumb lever or other type of manually operated release mechanism.
Generally speaking, though, most guns will have some kind of magazine release button or lever that you can press or operate to release the magazine. So if you’re not sure how to do it with your particular gun, just take a look around and see if you can find the release mechanism. It’s usually pretty easy to spot.
If you’re still having trouble, there are plenty of instructional videos and articles online that can show you how to release a magazine on various types of guns. Just do a quick search for your specific gun model, and you should be able to find what you’re looking for.
Thanks for the question!