> ## 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.

# Skill löschen

> Lösche einen Skill aus deinem Workspace

<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 einen Skill dauerhaft aus deinem Workspace. Diese Aktion kann nicht rückgängig gemacht werden.

## Erforderliche Scopes

Dieser Endpoint erfordert den `SKILL_API` Scope.

<Info>
  Erfordert Owner-Zugriff auf den Skill. Workspace-Admins können Skills ebenfalls über diesen Endpoint löschen.
</Info>

## Pfadparameter

| Parameter | Typ    | Erforderlich | Beschreibung                   |
| --------- | ------ | ------------ | ------------------------------ |
| `skillId` | string | Ja           | UUID des zu löschenden Skills. |

## Beispiel

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

async function deleteSkill(skillId) {
  const response = await axios.delete(
    `https://api.langdock.com/skills/v1/${skillId}`,
    {
      headers: {
        Authorization: "Bearer YOUR_API_KEY"
      }
    }
  );

  console.log("Deleted:", response.data.success);
}

deleteSkill("550e8400-e29b-41d4-a716-446655440000");
```

## Antwortformat

### Erfolgsantwort (200 OK)

```typescript theme={null}
{
  success: true;
}
```

## Fehlerbehandlung

| Statuscode | Beschreibung                                                                    |
| ---------- | ------------------------------------------------------------------------------- |
| 400        | Ungültiges Skill-ID-Format                                                      |
| 401        | Ungültiger oder fehlender API Key                                               |
| 403        | Fehlender `SKILL_API` Scope, kein Skills-Produktzugriff oder kein Owner-Zugriff |
| 404        | Skill nicht gefunden                                                            |
| 429        | Rate Limit überschritten                                                        |
| 500        | Interner Serverfehler                                                           |

<Warning>
  Das Löschen eines Skills ist dauerhaft. User, Agents oder Projekte, die auf den Skill angewiesen waren, haben diese Anweisungen danach nicht mehr verfügbar.
</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>


## OpenAPI

````yaml DELETE /skills/v1/{skillId}
openapi: 3.0.0
info:
  title: Langdock API
  version: 3.0.0
servers:
  - url: https://api.langdock.com
    description: Production
security:
  - bearerAuth: []
paths:
  /skills/v1/{skillId}:
    delete:
      tags:
        - Skills
      summary: Delete a Skill
      description: Permanently deletes a Skill from your workspace.
      operationId: deleteSkill
      parameters:
        - $ref: '#/components/parameters/SkillId'
      responses:
        '200':
          description: Skill deleted successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                properties:
                  success:
                    type: boolean
                    example: true
        '400':
          description: Invalid Skill ID
        '401':
          description: Invalid or missing API key
        '403':
          description: Missing required scope or owner access
        '404':
          description: Skill not found
        '429':
          description: Rate limit exceeded
        '500':
          description: Internal server error
components:
  parameters:
    SkillId:
      name: skillId
      in: path
      required: true
      description: UUID of the Skill.
      schema:
        type: string
        format: uuid
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key as Bearer token. Format "Bearer YOUR_API_KEY"

````