AzureML.ManagementSDK.RemoveExperimentById C# (CSharp) Method

RemoveExperimentById() public method

public RemoveExperimentById ( WorkspaceSetting setting, string ExperimentId ) : void
setting AzureML.Contract.WorkspaceSetting
ExperimentId string
return void
        public void RemoveExperimentById(WorkspaceSetting setting, string ExperimentId)
        {
            ValidateWorkspaceSetting(setting);
            Util.AuthorizationToken = setting.AuthorizationToken;
            string queryUrl = StudioApi + string.Format("workspaces/{0}/experiments/{1}?deleteAncestors=true", setting.WorkspaceId, ExperimentId);
            HttpResult hr = Util.HttpDelete(queryUrl).Result;
            if (!hr.IsSuccess)
                throw new AmlRestApiException(hr);
        }