You should be able to call the sync_sso route to re-sync the user avatar, but you can also make a PUT request to http://localhost:3000/u/<username>/preferences/avatar/pick
with an empty upload_id
to delete the users current avatar and assign them a letter avatar.