Remember that your tank is also a breeding ground for several types of bacteria that provide a safe environment for the fish. It's virtually impossible to have an aquarium that's both odorless and healthy. However, there are some smells that can be removed, which have to do with waste and feeding.
Some aquarists like to feed their fish egg yolk every now and then as a treat to fish. However, overfeeding them with this gives the aquarium a serious smell.
Dead fish cause raised levels of ammonia in a fish tank. If you have recently lost a fish, you should do a 25-50% water change.
Plants can cause smell too, make sure none of your plants are dead, and that there are no leaves floating around.
Overfeeding causes waste to build up in the aquarium and it's filter, and can also cause smells. If your goldfish have long trails of feces, hanging from their rears, they are probably being overfed.
Still, I wouldn't worry too much. Like i said, an odorless aquarium is probably an unhealthy one