If it's Japanese ritual suicide you're thinking about, it's called seppuku or hara-kiri. If it's the
Roman one, where people did throw themselves on their swords (like
Anthony at the end of
Anthony and
Cleopatra), then I'm not sure if there's a specific name.