@php $deletionBlockers = currentTeam()->deletionBlockers(); $blockerDetails = [ 'projects' => ['label' => 'project', 'route' => 'project.index'], 'servers' => ['label' => 'server', 'route' => 'server.index'], 'sources' => ['label' => 'Git source', 'route' => 'source.all'], ]; @endphp Team Danger Zone | Coolify
@if (auth()->user()->roleInTeam(currentTeam()->id) !== 'owner')

Only team owners can delete this team.

@elseif (session('currentTeam.id') === 0)

The default team cannot be deleted.

@elseif(auth()->user()->teams()->count() === 1 || auth()->user()->currentTeam()->personal_team)

Your last or personal team cannot be deleted.

@elseif(currentTeam()->subscription)

Cancel your subscription before deleting this team.

@elseif($deletionBlockers === [])

Permanently delete {{ currentTeam()->name }} from Coolify. This action cannot be undone.

  • • All members will lose access to this team.
  • • This team cannot be restored from Coolify after deletion.
@else

This team still owns:

Remove or move these resources before deleting the team.

@endif @if ( session('currentTeam.id') !== 0 && auth()->user()->roleInTeam(currentTeam()->id) === 'owner' && auth()->user()->teams()->count() > 1 && !auth()->user()->currentTeam()->personal_team && !currentTeam()->subscription && $deletionBlockers === []) @else Delete team @endif
@if (session('currentTeam.id') !== 0 && !currentTeam()->subscription && (currentTeam()->projects->isNotEmpty() || currentTeam()->servers->isNotEmpty()))
Resources
Refresh
@foreach (currentTeam()->projects as $project) @endforeach @foreach (currentTeam()->servers as $server) @endforeach
Resource Name
Project {{ $project->name }}
Server {{ $server->name }}
@endif