import { createApiClient } from "../../common/api/client.js";
import { printResultToConsole } from "../../common/output.js";
export async function deleteCommand(argv) {
    const { account, project } = argv;
    const certId = argv["cert-id"];
    const client = createApiClient({ authToken: argv.authToken });
    await client.delete(`/v1/accounts/${account}/projects/${project}/mtls-certificates/${encodeURIComponent(certId)}`, {
        operation: "Failed to delete mTLS certificate",
        errorMessage: "Error: Failed to delete mTLS certificate.",
        emptyResponse: true,
    });
    printResultToConsole(`mTLS certificate ${certId} deleted successfully`);
}
//# sourceMappingURL=handler.js.map