I'd like to identify this anime which I watched around 15 years ago. It looks like a Japanese anime, but I'm not sure.
I do not remember a lot about this anime. I only remember there is a boy fighting robots in space. The setting is quite futuristic with a spaceship that shoots lasers, drones, robots etc. There is a weapon that looks like a lightsaber in the anime. Most character in the anime use the lightsaber, but the main character which is a boy prefer to use an magical iron sword. The iron sword able to cut metal easily.
I'm not sure about this and perhaps it's another anime. The bad guys is a bald guy with a something like a half moon sword and has black armor.