def delete_default_service_account(context, api_names_list):
    """ Delete the default service account. """

    resource = [
        {
            'name': '{}-delete-default-sa'.format(context.env['name']),
            # https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/delete
            'action': 'gcp-types/iam-v1:iam.projects.serviceAccounts.delete',
            'metadata':
                {
                    'dependsOn': api_names_list,
                    'runtimePolicy': ['CREATE']
                },
            'properties':
                {
                    'name':
                        'projects/$(ref.{}-project.projectId)/serviceAccounts/$(ref.{}-project.projectNumber)-compute@developer.gserviceaccount.com'.format(context.env['name'], context.env['name'])  # pylint: disable=line-too-long
                }
        }
    ]

    return resource