As mentioned, aerobic bacteria on filter media from a healthy tank will process ammonia into nitrite and nitrite into nitrate (nitrosomonas and nitrospira), but will not oxidize nitrate into nitrogen gas. Very specialized anoxic or anaerobic bacteria are required to do that. I have tried some of the commercial bio-medias that claim to provide micro-pores to culture anaerobic bacteria, and am experimenting with Dr. Kevin Novak's anoxic biocenosis clarification baskets, but beyond floating plants that use ammonia as their nitrogen source and good tank maintenance (including sufficient volume/frequency of partial water changes), I have yet to find a magic bullet for nitrates!
Here's a deep dive into
filtration and water quality that you may find helpful.