public Integer doCall() throws Exception {
        File resolvedWorkingDir;
        if (workingDir != null) {
            resolvedWorkingDir = new File(workingDir);
        } else {
            String projectName;
            if (name != null) {
                projectName = KubernetesHelper.sanitize(name);
            } else if (filePath != null) {
                projectName = KubernetesHelper.sanitize(FileUtil.onlyName(SourceScheme.onlyName(filePath)));
            } else {
                printer().println("Name or source file must be set");
                return 1;
            }

            resolvedWorkingDir = new File(RUN_PLATFORM_DIR + "/" + projectName);
        }

        if (!resolvedWorkingDir.exists()) {
            printer().printf("Failed to resolve exported project from path '%s'%n", resolvedWorkingDir);
            return 1;
        }

        File manifest = KubernetesHelper.resolveKubernetesManifest(new File(resolvedWorkingDir, "target/kubernetes"));
        try (FileInputStream fis = new FileInputStream(manifest)) {
            List<StatusDetails> status;
            if (namespace != null) {
                status = client().load(fis).inNamespace(namespace).delete();
            } else {
                status = client().load(fis).delete();
            }

            status.forEach(s -> printer().printf("Deleted: %s '%s'%n", StringHelper.capitalize(s.getKind()), s.getName()));
        }

        return 0;
    }
@Test
    public void shouldHandleNoExportFound() throws Exception {
        KubernetesDelete command = new KubernetesDelete(new CamelJBangMain().withPrinter(printer));
        command.withClient(kubernetesClient);
        command.name = "does-not-exist";
        int exit = command.doCall();

        Assertions.assertEquals(1, exit);
        Assertions.assertEquals("Failed to resolve exported project from path '.camel-jbang-run/does-not-exist'",
                printer.getOutput());
    }