def remove_admin_access_permissions(apps, schema_editor):
    ContentType = apps.get_model('contenttypes.ContentType')
    Permission = apps.get_model('auth.Permission')
    wagtailadmin_content_type = ContentType.objects.get(
        app_label='wagtailadmin',
        model='admin',
    )
    # This cascades to Group
    Permission.objects.filter(
        content_type=wagtailadmin_content_type,
        codename='access_admin',
    ).delete()
Reverse the above additions of permissions.
dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailadmin/migrations/0001_create_admin_access_permissions.py/remove_admin_access_permissions