This is not modal. If the target changes from an artifact to an enchantment or vice versa, this still destroys it.

Artwork
Loading artwork…
Disenchant
Foundations · #572 · EN
Nonfoil—Foil—
Card rules
Destroy target artifact or enchantment.
Even millennia later, some war machines from the devastating Brothers' War continue to function. Thankfully, the weapons meant to destroy them still work too.
Common · Illustrated by Richard Kane Ferguson
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
PreDH Legal
Premodern Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Old School Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions