---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.2
alternate:
  - https://yandex.com/dev/direct/doc/dg-v4/en/live/RetargetingCondition_Delete.md
  - https://yandex.com/dev/direct/doc/dg-v4/ru/live/RetargetingCondition_Delete.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/direct/doc/dg-v4/en/llms.txt

# Delete
Deletes a retargeting condition.

{% note alert %}

Disabled method. Use version 5 of the API.

For information about the compatibility of methods between versions Live 4 and 5, see the [Migration guide](https://yandex.com/dev/direct/doc/migration/concepts/methods.md).

{% endnote %}


## Input data

The input data structure in JSON is shown below.

```javascript
{
   "method": "RetargetingCondition",
   "param": {
      /* RetargetingConditionRequest */
      "Action": (string),
      "SelectionCriteria": {
         /* RetargetingConditionSelectionCriteria */
         "RetargetingConditionIDS": [
            (int)
            ...
         ],
         "Logins": [
            (string)
            ...
         ]
      }
   }
}
```

Parameters are described below.


#|
||
**<sup >Parameter</sup>**
|
**<sup >Description</sup>**
|
**<sup >Required</sup>**
||

||
**<sub >RetargetingConditionRequest object</sub>**
||
||
`Action`
|
Action: Delete.
|
Yes
||
||
`SelectionCriteria`
|
The `SelectionCriteria` object, which contains criteria for selecting retargeting conditions to delete.
|
Yes
||

||
**<sub >RetargetingConditionSelectionCriteria object</sub>**
||
||
`RetargetingConditionIDS`
|
Array containing the IDs of retargeting conditions to perform the operation for.
|
No
||
||
`Logins`
|
Array containing usernames of clients to perform the operation for.

For direct advertisers, this parameter is ignored.
|
No
||

||
**Notes**
||
||
{% note alert %}

1. For advertisers: If the `SelectionCriteria` structure is empty, the operation will be performed for all the retargeting conditions.
1. For agencies: At least one of the `RetargetingConditionIDS` or `Logins` parameters must be set. If both parameters are set, the operation will be performed for retargeting conditions that simultaneously meet both criteria: a condition ID set in the `RetargetingConditionIDS` array, and a username of the condition's owner that is set in the `Logins` array.

{% endnote %}
||
|#

## Output data

Returns an empty structure:

```javascript
{ }
```

## Examples of input data

# Python

```python
{
   'Action': 'Delete',
   'SelectionCriteria': {
      'Logins': ['agrom','larry']
   }
}
```

# PHP

```php
array(
   'Action' => 'Delete',
   'SelectionCriteria' => array(
      'Logins' => array('agrom','larry')
   )
)
```

# Perl

```perl
{
   'Action' => 'Delete',
   'SelectionCriteria' ={
      'Logins' => ['agrom','larry']
   }
}
```

## Related information

- [Retargeting](https://yandex.com/dev/direct/doc/dg-v4/en/concepts/retargeting.md)

