Skip to main content

Delete tag

Deletes a tag by ID

Function DeleteTag(Val Token, Val TagID) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringAuth token
TagID--labelStringID of the tag to be deleted

Returns: Map Of KeyAndValue - serialized JSON response from Yandex


tip

Method at API documentation: Deleting a tag


1C:Enterprise/OneScript code example
    Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
TagID = "314158";

Result = OPI_YandexMetrika.DeleteTag(Token, TagID);
    oint metrika DeleteTag \
--token "***" \
--label "314175"
Result
{
"success": true
}