public async Task Remove(VocabularyRemoveCriteria criteria) { Argument.IsNotNull(criteria, nameof(criteria)); if (criteria.VocabularyId.HasValue) { await Client.Delete($"{ApiKeys.Endpoint}vocabulary/{criteria.VocabularyId}", ApiKeys.ApiToken, null).ConfigureAwait(false); } else { var parameters = criteria.ToParameters(); await Client.Delete($"{ApiKeys.Endpoint}vocabulary", ApiKeys.ApiToken, parameters).ConfigureAwait(false); } }
public async Task Remove(DataSetRemoveCriteria criteria) { Argument.IsNotNullOrEmpty(criteria.Name, nameof(criteria.Name)); var parameters = criteria.ToParameters(); await Client.Delete($"{ApiKeys.Endpoint}data/{criteria.Name}", ApiKeys.ApiToken, parameters).ConfigureAwait(false); }
public async Task Remove(SessionRemoveCriteria criteria) { var parameters = criteria.ToParameters(); Client.Delete($"{ApiKeys.Endpoint}sessions", ApiKeys.ApiToken, parameters); }