---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.com/support/metrica/en/ad/remove.md
  - https://yandex.com/support/metrica/es/ad/remove.md
  - https://yandex.com/support/metrica/pt/ad/remove.md
  - https://yandex.com/support/metrica/ru/ad/remove.md
  - https://yandex.com/support/metrica/tr/ad/remove.md
  - https://yandex.com/support/metrica/zh/ad/remove.md
title: Deleting promotion expense data
description: "Methods of deleting uploaded data from Yandex\_Metrica."
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/metrica/en/llms.txt


# Deleting promotion expense data


{% note info %}

Yandex Direct data cannot be deleted.

{% endnote %}


You can delete uploaded data from Yandex Metrica in several ways:

{% list tabs %}

- By date and UTM tags/sources

  
  1. In Yandex Metrica, go to **Settings** → **Upload data** tab.
  1. In **Advertising expenses**, select **Delete data**.
  1. Select the method **By date and UTM tags/sources**.
  1. To delete all expense data, select a date or period. To delete data about a specific advertising source, select a date or period and fill in the necessary fields — `TrafficSource`, `TrafficSourceDetail` or `UTMSource` as the values were specified when uploading the data. Pay attention to the case in which the field values are specified.
  

- Using a file

  
  1. Create a CSV file and enter the information you want to delete.
      
      #|
      ||
      **Field name**
      |
      **Required**
      |
      **Description**
      |
      **Example**
      ||
      ||
      `Date`
      |
      Yes
      |
      Period that data is transmitted for. It can be a day or an interval of time.
      
      In the [Unix Time Stamp](http://www.unixtimestamp.com/index.php) format according to the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) standard (YYYY-MM-DD). To specify a date range, use /.
      |
      2020-02-18
      
      2020-01-18/2020-02-18
      ||
      ||
      `TrafficSource`
      |
      Yes[*](**)
      |
      First-level traffic source.
      
      Acceptable values are given in the [table](https://yandex.com/support/metrica/en/ad/expenses.md).
      |
      ad
      ||
      ||
      `TrafficSourceDetail`
      |
      No
      |
      Second-level traffic source.
      
      Acceptable values are given in the [table](https://yandex.com/support/metrica/en/ad/expenses.md).
      |
      vk
      ||
      ||
      `UTMSource`
      |
      Yes[*](**)
      |
      Value of the UTM tag/source specified in the URL link in the ad.
      
      Note the case of the characters in the tag value. Use the same case as in the uploaded data.
      |
      vk
      ||
      ||
      `UTMCampaign`
      |
      No
      |
      ^
      |
      new
      ||
      ||
      `UTMMedium`
      |
      No
      |
      ^
      |
      cpc
      ||
      ||
      `UTMTerm`
      |
      No
      |
      ^
      |
      shirt-blue
      ||
      ||
      `UTMContent`
      |
      No
      |
      ^
      |
      shirt
      ||
      |#
      
      \* The `UTMSource` field is required if the `TrafficSource` field is not specified.
      
      Examples:
      
      {% cut "Deleting data about a specific advertising source for a specific period" %}
      
      For example, to delete data about an Instagram[*](*Сервис) ad campaign for the period from March 1 to March 15, fill in the file like this:
![](../_assets/delete-expences.png)
      
      {% endcut %}
      
      {% cut "Deleting all data for a period" %}
      
      To delete all data for a certain period, only indicate the required dates in the `Date` field of the file:
![](../_assets/del-all-expences.png)
      
      {% endcut %}
      
      [Example of deleting a file](https://download.cdn.yandex.net/from/yandex.ru/support/ru/metrica/files/expenses-delete.csv)
      
  1. In Yandex Metrica, go to **Settings** → **Upload data** tab.
  1. In **Advertising expenses**, select **Delete data**.
  1. Choose the **Using a file** method.

{% endlist %}


{% note info %}

If you uploaded data from multiple services to Yandex Metrica (`Provider`) and want to delete data only from some of them, use the API. If you delete information in the Yandex Metrica web interface, data from all providers will be deleted for the specified period.

{% endnote %}


You can use the API to delete data in one of the following ways:
- [Right in the request](https://yandex.ru/dev/metrika/doc/api2/management/expenses/uploadremovesingleline-docpage/).
- [In the CSV file](https://yandex.ru/dev/metrika/doc/api2/management/expenses/uploadremovebody-docpage/).
- [As multipart/form-data](https://yandex.ru/dev/metrika/doc/api2/management/expenses/uploadremovemultipart-docpage/).


<!-- source: en/_includes/buttons/chat-button.md -->
[Chat with us](https://yandex.com/chat/#/user/036e6a02-3620-9cdc-4c5e-a34667a7379e?utm_source=spravka){.button}

<!-- source: en/_includes/styles/href-to-button.md -->

<!-- endsource: en/_includes/styles/href-to-button.md -->
<!-- endsource: en/_includes/buttons/chat-button.md -->

<!-- source: en/_includes/support-2.md -->
<div class="cut-button">

{% cut "Write an email" %}

<!-- source: en/_includes/popup/id-popup/wrong-sup.md -->
Please note: Our support team will never initiate a call to you. Do not follow any instructions of people who call you and introduce themselves as the Yandex Metrica support team.
<!-- endsource: en/_includes/popup/id-popup/wrong-sup.md -->

<div style="padding: 15px;
     margin: 10px 0;
     background: #FFFFFF;
     border-radius: 10px;
     border: 1px solid var(--yc-color-line-generic);">
  <iframe style="background: #FFFFFF;"
        height="700"
        width="100%"
        frameborder="0"
        src="https://forms.yandex.com/surveys/10011833/?&iframe=1&lang=en">
  </iframe>
</div>

{% endcut %}

</div>

<!-- source: en/_includes/styles/cut-button.md -->

<!-- endsource: en/_includes/styles/cut-button.md -->
<!-- endsource: en/_includes/support-2.md -->

<!-- source: en/_includes/footer-links.md -->
- - -

<div class="borderless-table">

#|
||
Useful links

- [Demo tag](https://metrica.yandex.com/r/dashboard?)
- [Add a tag](https://metrica.yandex.com/add/)
- [Free tag setup](https://yandex.com/promo/freeservice/metrica?utm_source=help_metrica_en&utm_medium=cpc&utm_campaign=1)
- [Yandex Metrica API](https://tech.yandex.com/metrika/)
- [Suggest your idea](https://yandex.com/support/metrica/troubleshooting/idea.html)
- [Discuss in Telegram](https://t.me/yandexmetrika)
|
Online training

- [Get a Yandex Metrica certificate](https://yandex.ru/adv/expert/exam/metrika/?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)


- [Take a training course](https://yandex.com/adv/edu/online/metrika?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)

||
|#

</div>

<!-- source: en/_includes/styles/table-style.md -->

<!-- endsource: en/_includes/styles/table-style.md -->
<!-- endsource: en/_includes/footer-links.md -->

[**]: \* The `UTMSource` field is required if the `TrafficSource` field is not specified.

[*Сервис]: Banned in Russia.