/// <summary>删除配置</summary> /// <returns>存在时删除后返回true,或者返回false</returns> public static Task <bool> RemoveItem(this INamespaceClient client, string key, string @operator, CancellationToken cancellationToken = default) { if (client == null) { throw new ArgumentNullException(nameof(client)); } if (key == null) { throw new ArgumentNullException(nameof(key)); } if (@operator == null) { throw new ArgumentNullException(nameof(@operator)); } return(client.Delete($"envs/{client.Env}/apps/{client.AppId}/clusters/{client.Cluster}/namespaces/{client.Namespace}/items/{key}?operator={WebUtility.UrlEncode(@operator)}", cancellationToken)); }