@_aDiedericks
The process we follow if we are disposing of a device is.
1. Remove it from DEP.
2 Erase and install fresh copy of MacOS.
3. Remove from Meraki dashboard.
I don't see that point in just removing the profiles and agent, if you are getting rid of the device then fully erasing the disk is the most secure option as it removes the potential to accidentally leave files on the device.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.