> ## Documentation Index
> Fetch the complete documentation index at: https://help.teable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Datensätze löschen

### Pfad

DELETE /api/table/\{tableId}/record

### Anfrage

**Pfadparameter**

* tableId (string): Die eindeutige Kennung der Tabelle [(So ermitteln Sie sie)](/de/api-doc/get-id#tableid).

**Abfrageparameter**

* **recordIds (erforderlich)** [(So ermitteln Sie sie)](/de/api-doc/get-id#recordid)
  * Beschreibung: Array der zu löschenden Datensatz-IDs
  * Typ: Array
  * Beispiel: `["rec123456", "rec789012"]`
  * Hinweis: Jedes Element ist eine Zeichenfolge, die die ID eines zu löschenden Datensatzes darstellt.

#### Antwort

**Erfolgsantwort**

* Statuscode: 200 OK
* Antworttext: Kein Inhalt

#### Fehlerantworten

* Statuscode: 400 Bad Request: Fehler im Format der Anfrageparameter oder erforderliche Parameter fehlen.
* Statuscode: 404 Not Found: Die angegebene tableId existiert nicht oder einige Datensatz-IDs existieren nicht.

#### Codebeispiel

<CodeGroup>
  ```bash CURL theme={null}
  curl -X DELETE 'https://app.teable.ai/api/table/__tableId__/record?recordIds[]=rec123456&recordIds[]=rec789012' \
    -H 'Authorization: Bearer __token__'
  ```

  ```js JS SDK theme={null}
  import { configApi, deleteRecords } from '@teable/openapi';

  configApi({
    endpoint: 'https://app.teable.ai',
    token: '__token__',
  });

  await deleteRecords('__tableId__', ['rec123456', 'rec789012']);
  ```

  ```ts TypeScript theme={null}
  const response = await fetch('https://app.teable.ai/api/table/__tableId__/record?recordIds[]=rec123456&recordIds[]=rec789012', {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer __token__'
    }
  });

  console.log(response.status); // 200 if successful
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete(
      'https://app.teable.ai/api/table/__tableId__/record',
      headers={
          'Authorization': 'Bearer __token__'
      },
      params={
          'recordIds': ['rec123456', 'rec789012']
      }
  )

  print(response.status_code) # 200 if successful
  ```
</CodeGroup>
