/// <summary> /// Removes one or more tags from one or more objects by the tag name. /// </summary> /// <param name="tagNames">A list of the names of the tag(s) which should be removed from objects.</param> /// <param name="searchOptions">The search options.</param> public async Task RemoveTagNamesAsync(IEnumerable <string> tagNames, ApiSearchOptions searchOptions = null) => await _ontraObjects.RemoveTagNamesAsync((ApiObjectType)_objectTypeId, tagNames, searchOptions);
/// <summary> /// Removes a tag from an object by the tag name. /// </summary> /// <param name="id">The id of the object to affect.</param> /// <param name="tagName">The name of the tag which should be removed from the object.</param> public async Task RemoveTagNamesAsync(int id, string tagName) => await _ontraObjects.RemoveTagNamesAsync((ApiObjectType)_objectTypeId, new ApiSearchOptions(id), new[] { tagName }).ConfigureAwait(false);