private void delete(ApiClient apiClient, String name, String namespace) throws ApiException {
        AppsV1beta2Api appsV1beta2Api = new AppsV1beta2Api(apiClient);
        V1DeleteOptions deleteOptions = getDeleteOptions();
        deleteOptions.setApiVersion("apps/v1beta2");
        try {
            appsV1beta2Api.deleteNamespacedStatefulSet(name, namespace, DeployerConstants.TRUE, null, null, null, null,
                    deleteOptions);
        } catch (JsonSyntaxException e) {
            // K8s end exception ignore
        }
    }
@param apiClient
@param name
@param namespace
@return true if pods needs to be deleted
@throws HyscaleException
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/V1beta2StatefulSetHandler.java