How to delete user aliases using Admin SDK

Problem

How can you delete user aliases (secondary email addresses) in bulk or in a faster way?

Environment

  • Admin Console
  • User and Organizational Level Management

Solution

You can delete user aliases in a faster way by using our back end tools in the Admin SDK portal. Please follow the steps below:
  1. Go to Delete user aliases.
  2. Click on Try this API.
  3. File the fields as: 
    1. User string: The email address of the user who has the alias.
    2. User alias: The actual alias address that you wish to delete.
  4. Click on Execute.
Note: Getting an error code 200, means changes are success, getting an error code 400, means you missed a field. You will still need to delete them one by one, but it is faster to just file the data and click on Execute rather than having to open each and every user to delete the secondary address.