Notification types could not be deleted

It was not possible to delete notification types after they were created.