Remove a specific alias from a user.
Use this API to remove a specific alias from a user’s identity object without deleting the user. This operation only affects user identity labels—subscriptions and the core user record remain intact. To delete a user entirely, including all associated aliases and subscriptions, see the Delete user API.
To remove an alias from a user:
Identify the user via a known alias by specifying:
alias_label
– the type of alias (e.g., email, external_id)alias_id
– the unique identifier for that aliasSpecify the alias to remove using:
alias_label_to_delete
– the label of the alias to be deletedThe alias_label_to_delete
can be the same as the alias_label
used to identify the user.
This action is performed synchronously—the alias is deleted immediately after the request is processed.
The onesignal_id
alias cannot be deleted. Only secondary aliases (like email, external_id, etc.) are removable.
For a full explanation of identity management, see Users and Aliases.
Yes. This is a common scenario—especially if an alias was set incorrectly and needs to be removed. Just be sure to include that alias both as the identifier and as alias_label_to_delete.
If you want to delete the entire user and all associated data, use the Delete user API.
A user will always retain at least one alias, the onesignal_id. Even if you remove all other aliases, the user and their subscriptions remain linked to the onesignal_id.
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
The alias name or key to locate the user. Most commonly set as external_id
but can be the onesignal_id
or a custom alias.
The specific identifier for the given alias to identify the user.
The name of the alias to remove.
200
The response is of type object
.
Remove a specific alias from a user.
Use this API to remove a specific alias from a user’s identity object without deleting the user. This operation only affects user identity labels—subscriptions and the core user record remain intact. To delete a user entirely, including all associated aliases and subscriptions, see the Delete user API.
To remove an alias from a user:
Identify the user via a known alias by specifying:
alias_label
– the type of alias (e.g., email, external_id)alias_id
– the unique identifier for that aliasSpecify the alias to remove using:
alias_label_to_delete
– the label of the alias to be deletedThe alias_label_to_delete
can be the same as the alias_label
used to identify the user.
This action is performed synchronously—the alias is deleted immediately after the request is processed.
The onesignal_id
alias cannot be deleted. Only secondary aliases (like email, external_id, etc.) are removable.
For a full explanation of identity management, see Users and Aliases.
Yes. This is a common scenario—especially if an alias was set incorrectly and needs to be removed. Just be sure to include that alias both as the identifier and as alias_label_to_delete.
If you want to delete the entire user and all associated data, use the Delete user API.
A user will always retain at least one alias, the onesignal_id. Even if you remove all other aliases, the user and their subscriptions remain linked to the onesignal_id.
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
The alias name or key to locate the user. Most commonly set as external_id
but can be the onesignal_id
or a custom alias.
The specific identifier for the given alias to identify the user.
The name of the alias to remove.
200
The response is of type object
.