A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.
Removes an email alias from a user.
23432The ID of the email alias.
12345The ID of the user.
Removes the alias and returns an empty response.
An unexpected client error.
curl -i -X DELETE "https://api.box.com/2.0/users/12345/email_aliases/23432" \
-H "authorization: Bearer <ACCESS_TOKEN>"await client.emailAliases.deleteUserEmailAliasById(newUser.id, newAlias.id!);client.email_aliases.delete_user_email_alias_by_id(new_user.id, new_alias.id)await client.EmailAliases.DeleteUserEmailAliasByIdAsync(userId: newUser.Id, emailAliasId: NullableUtils.Unwrap(newAlias.Id));try await client.emailAliases.deleteUserEmailAliasById(userId: newUser.id, emailAliasId: newAlias.id!)client.getEmailAliases().deleteUserEmailAliasById(newUser.getId(), newAlias.getId())await client.EmailAliases.DeleteUserEmailAliasByIdAsync(userId: newUser.Id, emailAliasId: NullableUtils.Unwrap(newAlias.Id));await client.emailAliases.deleteUserEmailAliasById(newUser.id, newAlias.id!);