Skip to main content
Both tools find the alias the same way. Pass exactly one of alias_id or address. Unlike the other tools, they also find deleted aliases. Each call costs credits. If you don’t have enough, the tool changes nothing. See When you run out.

wiseguard_delete_alias

Deletes an alias. You can restore it for 7 days. After that, the address is retired forever.
Paused and deleted aliases still receive and forward mail today. Pausing or deleting an alias doesn’t block mail yet. A deleted alias keeps forwarding until it’s removed for good, after the 7-day restore window.
Destructive Scope: aliases:write

Input

Output

Errors

The alias is already deleted, and can still be restored until the time shown:
The alias is already deleted, and the restore window has passed:

Example prompt

wiseguard_restore_alias

Restores a deleted alias within 7 days of deleting it. It comes back active, with the same address. Changes data Scope: aliases:write

Input

Output

The alias object, with state: active.

Errors

The 7-day window has passed:
The alias isn’t deleted:

Example prompt