There is no official spell specifically to dispose of corpses
Among the official published content of DND 5e, I was not able to find any spells to dispose of corpses, and in my search of UA material I found nothing as well. However, there are many spells that may be used to dispose of a corpse magically, depending on the leniency of your dungeon master.
Fire
Human skin receives first degree burns at 118 Celsius (244 Fahrenheit), and is destroyed at 162 Celsius (323 Fahrenheit); I assume flesh and the other parts of humans excluding bone burn at a similar temperature, though I don't want to add too many of these searches to my google algorithm. A crematorium typically operates between 760-980 Celsius (1400-1800 Fahrenheit), and burns for between 3 and 4 hours. It is up to your DM what temperature a fire spell is cast at, and whether it is hot enough to completely destroy a corpse, or how long you will need to be casting the spell for. Let's use the Commoner's stat block for a baseline: 4hp will be what we assume the average human has for health, and will be instantly killed if they receive 8hp of damage. Our best cantrip to burn bodies is likely Create Bonfire:
Create Bonfire
You create a bonfire on ground that you can see within range. Until the spell ends, the magic bonfire fills a 5-foot cube. Any creature in the bonfire's space when you cast the spell must succeed on a Dexterity saving throw or take 1d8 fire damage. A creature must also make the saving throw when it moves into the bonfire's space for the first time on a turn or ends its turn there.
The bonfire ignites flammable objects in its area that aren't being worn or carried.
The spell's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8).
The starting damage, 1d8, averages to 4.5hp. This would be enough average damage to outright kill an unconscious commoner. As your level increases, so too does the spells damage, however there is no clarification as too why the damage increases; it could be the spells temperature increasing, or it could be the size of the fire increasing (while remaining inside its 5-foot cube). This is up to your DM, but it is a good candidate for cremating bodies at higher levels, though it may need to be recast for up to 4 hours to complete the process.
A few leveled spell you may consider:
- Dragon's Breath (2nd level): This spell is able to produce a burst of flame every 6 seconds, but not continual; probably not a viable option.
- Wall of Fire (4th level): This is continual flame for 1 minute, and its increased damage may be justified as the fire being much hotter than typical; with DM discretion, this may be capable of cremation over the course of the spell.
- Immolation (6th level): If the damage from this spell kills its target, they are turned to ash. Perfect for dispose of living targets, but unfortunately this spell must be cast on a creature, and corpses are objects. Raise the corpse as an undead, then cast immolation on the resulting zombie.
Teleportation
A bit higher level of a solution, but potentially a perfect solution, if your evil spellcaster is able to get a hold of a gelatinous cube.
Teleportation Circle (5th level): Another spell that only effects creatures, but there is no reason for this spell not to effect objects; Raise the corpse as an undead, then have them enter the circle. Cast a teleportation circle onto a heavily slanted platform set above a 10-foot square pit for a year, until the circle is permanent. put a gelatinous cube in the pit. Anything that is teleported to the circle is immediately dumped into the gelatinous cube, and dissolved.
Teleport (7th level): Same as above, except this spell is already approved to teleport objects, and you don't need a year to set up the circle, as long as you have an associated object from the pit's location. While you can only teleport one object at a time, "a trunk with 5 bodies in it" counts as one object.
Animation
This will assume you are able to bring all of your victims, pre- or post-death, to the same location, and you have more than 1 victim. Animate Dead, Danse Macabre, Create Undead, and Finger of Death all create a undead creature of some sort, under your command. Command the resulting undead to "destroy all other corpses or undead, then pulp there bodies, then destroy yourself." Maybe put them in a room with a meat grinder, and teach the undead how to grind the other bodies? I'm sure there is a bit more magical option then that.
Other
Disintegrate (6th level):
A creature targeted by this spell must make a Dexterity saving throw. On a failed save, the target takes 10d6 + 40 force damage. The target is disintegrated if this damage leaves it with 0 hit points.
A disintegrated creature and everything it is wearing and carrying, except magic items, are reduced to a pile of fine gray dust. The creature can be restored to life only by means of a true resurrection or a wish spell.
This spell automatically disintegrates a Large or smaller nonmagical object or a creation of magical force. If the target is a Huge or larger object or creation of force, this spell disintegrates a 10-foot-cube portion of it. A magic item is unaffected by this spell.
This is a great option for a single corpse or creature, as it will be able to cleanly destroy the evidence in one shot. All that's left is a quick gust of wind spell to blow away the pile of ash that remains.