# Teams::user_can_delete_team_on_frontend()

Whether the user may permanently delete the team from the front-end manage screen.

Default: site/network teams admin, post author, or team roster admin.

```php
user_can_delete_team_on_frontend( int $team_id, ?int $user_id = null ): bool
```

## Parameters

- `$team_id` (int) Team post ID.
- `$user_id` (int|null) User ID or null for current user.

## Return

`bool`
