# 삭제

## 레코드 삭제하기 <a href="#delete-record" id="delete-record"></a>

{% hint style="info" %}
개별 오브젝트의 {slug} 정보는 [slug](https://docs.trackit.so/integrations/http-api/slug) 페이지에서 확인할 수 있습니다.
{% endhint %}

{% hint style="info" %}
Rquest Body를 활용하기 위해 DELETE가 아닌 POST Method로 제공됩니다.
{% endhint %}

<pre class="language-url"><code class="lang-url"><a data-footnote-ref href="#user-content-fn-1">POST</a> https://api.trackit.so/v1/objects/{slug}/records/delete
</code></pre>

## Request Body

{% hint style="danger" %}
여러 개의 레코드가 수정될 수 있습니다. API 호출 전 여러 개의 레코드 수정에 문제가 없는지 확인하세요.\
여러 개의 레코드가 수정될 필요가 없거나 우려가 된다면 'allowMultiple' 필드를 false로 등록하세요.
{% endhint %}

* filter : 필터로 검색 후 일치하는 모든 정보를 삭제합니다.
* allowMultiple : 필터에서 검색된 결과가 2개 이상일 때 모든 레코드를 삭제할 지 여부 (true, false)

**예시**: 이메일 주소와 일치하는 모든 '고객' 정보를 삭제

```json
{
    "filter": {
        "email-addresses": ["jang2.toss@toss.im"]
    },
    "allowMultiple": true // 필터링한 결과가 여러 개인 경우에도 삭제함
}
```

**속성명 확인**

레코드의 각 속성명은 '설정 > 워크스페이스 > API' 메뉴에서 확인할 수 있습니다.

<figure><img src="/files/vbTNRjrj5xWTpyECfNLn" alt=""><figcaption></figcaption></figure>

## Error Handling

[에러 처리](https://docs.trackit.so/integrations/http-api/error-handling) 페이지를 참고하세요.

[^1]: Request body를 활용하기 위해 Delete가 아닌 POST로 요청합니다.


---

# 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.trackit.so/integrations/http-api/delete.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.
