> For the complete documentation index, see [llms.txt](https://docs.ohmyapp.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ohmyapp.io/main/guide/develop_app/command-execute-function/create-logic/flow_option/delete-alotofexisting-data.md).

# 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
