The target permanent need not be a token. In that case, it will still be exiled.

Artwork
Loading artwork…
Legions to Ashes
Final Fantasy Commander · #326 · EN
Nonfoil—Foil—
Card rules
Exile target nonland permanent an opponent controls and all tokens that player controls with the same name as that permanent.
"Ha-ha! I'm raring to go! Can't be leaving everything up to you whippersnappers!" —Strago Magus
Rare · Illustrated by Anton Solovianchyk
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If the target is illegal as Legions to Ashes tries to resolve, it will be removed from the stack and do nothing, even if there are tokens with that name still on the battlefield.