18

My app now has 3 notification channels, I want to remove 2 of them.
I thought simply not registering 2 channels would do the trick but when I open the notification settings on the Android device, the old channels still appear.
Is it possible to remove them? They have no use and can confuse the users.

SagiLow
  • 4,717
  • 6
  • 45
  • 98

1 Answers1

27

Notification channels stay forever once they are created.

To remove them again, simply call deleteNotificationChannel() on the NotificationManager with the ID of the channel you want to delete:

notificationManager.deleteNotificationChannel("channel_id");
Floern
  • 31,495
  • 23
  • 98
  • 115