diff --git a/webapp/src/app/features/channels/channel-detail/channel-detail.component.html b/webapp/src/app/features/channels/channel-detail/channel-detail.component.html
index d0a985f..8dbcc95 100644
--- a/webapp/src/app/features/channels/channel-detail/channel-detail.component.html
+++ b/webapp/src/app/features/channels/channel-detail/channel-detail.component.html
@@ -15,19 +15,6 @@
Edit
-
}
diff --git a/webapp/src/app/features/channels/channel-detail/channel-detail.component.ts b/webapp/src/app/features/channels/channel-detail/channel-detail.component.ts
index 0989501..e4db74a 100644
--- a/webapp/src/app/features/channels/channel-detail/channel-detail.component.ts
+++ b/webapp/src/app/features/channels/channel-detail/channel-detail.component.ts
@@ -62,8 +62,6 @@ export class ChannelDetailComponent implements OnInit {
subscriptions = signal([]);
loading = signal(true);
loadingSubscriptions = signal(false);
- deleting = signal(false);
-
// Edit modal
showEditModal = signal(false);
editDisplayName = '';
@@ -173,24 +171,6 @@ export class ChannelDetailComponent implements OnInit {
});
}
- // Delete channel
- deleteChannel(): void {
- const channel = this.channel();
- const userId = this.authService.getUserId();
- if (!channel || !userId) return;
-
- this.deleting.set(true);
- this.apiService.deleteChannel(userId, channel.channel_id).subscribe({
- next: () => {
- this.notification.success('Channel deleted');
- this.router.navigate(['/channels']);
- },
- error: () => {
- this.deleting.set(false);
- }
- });
- }
-
// Regenerate keys
regenerateSubscribeKey(): void {
const channel = this.channel();