---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://yandex.com/dev/partner-statistics/doc/en/reference/mobile-adunit/deleteMobileAdUnit.md
  - https://yandex.com/dev/partner-statistics/doc/ru/reference/mobile-adunit/deleteMobileAdUnit.md
  - href: en/reference/mobile-adunit/deleteMobileAdUnit.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/partner-statistics/doc/en/llms.txt

<div class="openapi">

# Deleting a mobile ad unit by ID (archiving)

<!-- markdownlint-disable-file -->

{% list tabs %}

- Info

  ## Request
  
  <div class="openapi__requests">
  
  <div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-delete);margin-bottom: 12px">
  
  <div class="openapi__request">
  
  DELETE {.openapi__method}
  ```text translate=no
  https://partner.yandex.ru/api/mobile/adunit/{id}
  ```
  
  </div>
  
  Partner API
  
  </div>
  
  </div>
  
  ### Path parameters
  
  #|
  || **Name** | **Description** ||
  ||
  
  _id_{.json-schema-reset .json-schema-property .json-schema-required}
  {.table-cell}|
  **Type**: string
  
  Mobile ad unit ID
  
  _Pattern:_{.json-schema-reset .json-schema-assertion} `R-M-\d{1,10}-\d{1,7}`
  
  _Example:_{.json-schema-reset .json-schema-example} ``
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  ## Responses
  
  <div class="openapi__response__code__200">
  
  ## 200 OK
  
  OK
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {}
  ```
  
  {% endcut %}
  
  **Type**: object
  
  </div>
  
  </div>
        

- Console

  ```openapi-sandbox translate=no
  pathParams:
    - name: id
      in: path
      description: Mobile ad unit ID
      required: true
      schema:
        pattern: R-M-\d{1,10}-\d{1,7}
        type: string
  searchParams: []
  headers: []
  body: null
  schema: {}
  method: delete
  security:
    - type: oauth2
      flows:
        implicit:
          authorizationUrl: https://oauth.yandex.ru/authorize
          scopes:
            pi:access-ad-inventory-api: Yandex Advertising Network (Inventory Management API)
    - type: apiKey
      name: Authorization
      in: header
  path: mobile/adunit/{id}
  host: https://partner.yandex.ru
  
  ```
        

{% endlist %}


</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.