Can you use the dispel magic spell to take out undead that have been created using the animate dead spell?
As I understand it, counterspell is used to stop spells during their casting and dispel magic is for stopping active spells.
I know the animated dead doesn't need concentration or their caster to be alive after they have been animated, so the animate dead spell might just turn a corpse into a undead type creature that no longer needs magic to be active.
(I don't think the animate spells duration is relevant to this question.)
Best Answer
No.
As indicated by the Sage Advice Compendium (2017):
So, yes, duration is entirely relevant.
The entry goes on to detail why it functions this way, to paraphrase though: the effect that animates the dead is instantaneously brought into being by magic, but is not continuously sustained by magic afterwards. Therefore, skeletons can enter an antimagic field at their leisure and hack you to bits.
Of note: Danse macabre has a duration on the spell and therefore you could dispel one of the animated creatures.
Just for fun, if dispel magic worked in this way it would be the most powerful spell in the game and here is why:
Anyone that has ever been the target of a cure wounds (or for that matter revivify, raise dead, reincarnation, resurrection, etc.) spell could potentially die outright if targeted by dispel magic since it would erase all previous curative effects in an instant.