def METHOD_NAME(mock_run, fs):
    fs.create_file(
        "/external_resources/.applied/00-common/10-foo/30-hpa.yaml",
        contents="blah: blah",
    )
    fs.create_file(
        "/external_resources/.applied/00-common/10-foo/40-service.yaml",
        contents="blah: blah",
    )
    assert main("/external_resources") == 0
    assert mock_run.call_args_list == [
        mock.call(
            [
                "kubectl",
                "delete",
                "--ignore-not-found=true",
                "-f",
                "/external_resources/.applied/00-common/10-foo/40-service.yaml",
            ],
            check=True,
        ),
        mock.call(
            [
                "kubectl",
                "delete",
                "--ignore-not-found=true",
                "-f",
                "/external_resources/.applied/00-common/10-foo/30-hpa.yaml",
            ],
            check=True,
        ),
    ]
    assert not os.path.exists(
        "/external_resources/.applied/00-common/10-foo/30-hpa.yaml"
    )
    assert not os.path.exists(
        "/external_resources/.applied/00-common/10-foo/40-service.yaml"
    )