> For the complete documentation index, see [llms.txt](https://simpaypl.gitbook.io/simpay-laravel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simpaypl.gitbook.io/simpay-laravel/payments/blik-aliases/unregister-alias.md).

# Unregister alias

At first you need to generate transaction:

```php
$subscription = SimPay::payment()->blikAliases()->unregister()
    // required one of:
        ->type(\SimPay\Laravel\Enums\Payment\BlikAlias\BlikAliasType::PAYID)
        ->value('ALIAS_VALUE')
    // or
        ->uuid('alias id')
        
    // optional fields
    ->reason('reason for alias cancellation')
    // execute() is required to unregister alias
    ->execute();
```

Response will be `true` or thrown SimPayException (see [Exceptions](/simpay-laravel/exceptions.md)).
