# Delete Multiple Data Entries

조건에 맞는 다수의 데이터(Document)를 삭제해요.&#x20;

<div align="left"><figure><img src="/files/h6TVNlP6I9SdZ5hk65Dz" alt="" width="344"><figcaption></figcaption></figure></div>

**Collection for Data Delete :** 삭제하려는 데이터가 있는 컬렉션 명을 작성해요.&#x20;

> 예시 : 좋아요 기록을 삭제하기 위해 \_docTimeline을 작성해줘요.&#x20;

**Data Search Condition to Delete** : 삭제하고 싶은 문서들의 검색 조건을 오브젝트 형태로 작성해요.&#x20;

값으로 모든 데이터형을 지원해요.&#x20;

```
{
  "_createUser._id": "tmpDocument.userId",
  "component":"_like",
  "collectionName": "tmpDocumentJson.collectionName"
}
```

<div align="left"><figure><img src="/files/yiXSf4hZPCBcInbLXqH3" alt="" width="346"><figcaption></figcaption></figure></div>

> 좋아요를 누른 유저의 \_id가 로직을 실행한 userId가 같고 \
> 컴포넌트가 \_like\
> 컬렉션의 이름이 현재 문서의 컬렉션 이름과 같은 조건의 데이터를 삭제합니다.&#x20;

2024.03.04 Jinny

**Delete Multiple Existing Data**

This function enables the execution of operations to delete multiple pre-existing data sets.

2023.08.11 Song


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ohmyapp.io/main/guide/develop_app/command-execute-function/create-logic/flow_option/delete-alotofexisting-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
