# boolean_smtp_connection_deleted

> Fires after a connection has been deleted.

Action · Tier A · Since 1.0.0



## Signature

```php
add_action( 'boolean_smtp_connection_deleted', $callback, 10, 1 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$payload` | `array<string, mixed>` |  |
| &nbsp;&nbsp;`id` | `int` | Id of the deleted connection. |
| &nbsp;&nbsp;`timestamp` | `int` | Unix timestamp of the deletion. |

## Fires in

- [app/Http/Controllers/ConnectionController.php:311](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Http/Controllers/ConnectionController.php#L311) — `BooleanSmtp\Http\Controllers\ConnectionController::destroy()`
- [app/Http/Controllers/ConnectionController.php:358](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Http/Controllers/ConnectionController.php#L358) — `BooleanSmtp\Http\Controllers\ConnectionController::bulkDestroy()`

## Example

```php
add_action( 'boolean_smtp_connection_deleted', function ( array $payload ) {
    // React to the event.
}, 10, 1 );
```
