I am trying to delete the user roles and permissions using SSJS (payload) in Marketing Cloud. I was able to add and update the roles, but I don't know if i can delete the roles.
I was successful in updating the roles. The problem is when I try to update the roles it gets appended to the old roles. Basically, I want to remove the old roles and assign a new role.
Any sample code would really be appreciated.