Connor, if you want to do this via API not through the UI, an alternative might be to use /api/v2/gamification/profiles/{profileId}/deactivate to deactivate the profile. This should remove all agents currently assigned to the profile. You can then (optionally) use /api/v2/gamification/profiles/{profileId}/activate to activate it again.
Let me know if either of the suggestions here worked for you!
------------------------------
Eduard Roehrich
Staff Product Manager
------------------------------