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

# Action löschen

> Lösche eine Action aus einer Integration

<Info>
  **Nutzt du unsere API über ein Dedicated Deployment?** Ersetze einfach `api.langdock.com` mit der Basis-URL deines Deployments: **`<deployment-url>/api/public`**
</Info>

Löscht eine Action dauerhaft aus einer Integration. Diese Aktion kann nicht rückgängig gemacht werden.

## Erforderliche Scopes

Dieser Endpoint erfordert den `INTEGRATION_API` Scope.

## Pfad-Parameter

| Parameter       | Typ    | Erforderlich | Beschreibung                  |
| --------------- | ------ | ------------ | ----------------------------- |
| `integrationId` | string | Ja           | UUID der Integration          |
| `actionId`      | string | Ja           | UUID der zu löschenden Action |

## Beispiel

```javascript theme={null}
const axios = require("axios");

async function deleteAction(integrationId, actionId) {
  const response = await axios.delete(
    `https://api.langdock.com/integrations/v1/${integrationId}/actions/${actionId}`,
    {
      headers: {
        Authorization: "Bearer YOUR_API_KEY"
      }
    }
  );

  console.log("Action deleted:", response.data);
}

deleteAction("550e8400-e29b-41d4-a716-446655440000", "660e8400-e29b-41d4-a716-446655440001");
```

## Antwortformat

### Erfolgreiche Antwort (200 OK)

```typescript theme={null}
{
  message: "Action deleted";
  id: string;  // UUID der gelöschten Action
}
```

## Fehlerbehandlung

| Status Code | Beschreibung                                      |
| ----------- | ------------------------------------------------- |
| 400         | Ungültiges Format der Integration- oder Action-ID |
| 401         | Ungültiger oder fehlender API-Schlüssel           |
| 403         | Kein Zugriff auf diese Integration                |
| 404         | Integration oder Action nicht gefunden            |
| 429         | Rate Limit überschritten                          |

<Warning>
  Das Löschen einer Action ist dauerhaft und kann nicht rückgängig gemacht werden. Alle Agenten oder Workflows, die diese Action verwenden, können sie danach nicht mehr ausführen.
</Warning>

<Info>
  Langdock blockiert bewusst Browser-basierte Anfragen, um deinen API-Schlüssel zu schützen und die Sicherheit deiner Anwendungen zu gewährleisten. Weitere Informationen findest du in unserem Guide zu [Best Practices für API-Schlüssel](/de/admin/ai-adoption-and-rollout/best-practices/api-key-best-practices).
</Info>
