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

# Delete Skill

> Delete a Skill from your workspace

<Info>
  **Using our API via a dedicated deployment?** Just replace `api.langdock.com` with your deployment's base URL: **`<deployment-url>/api/public`**
</Info>

Permanently deletes a Skill from your workspace. This action cannot be undone.

## Required Scopes

This endpoint requires the `SKILL_API` scope.

<Info>
  Requires owner access to the Skill. Workspace admins can also delete Skills through this endpoint.
</Info>

## Path Parameters

| Parameter | Type   | Required | Description                  |
| --------- | ------ | -------- | ---------------------------- |
| `skillId` | string | Yes      | UUID of the Skill to delete. |

## Example

```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");
```

## Response Format

### Success Response (200 OK)

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

## Error Handling

| Status Code | Description                                                       |
| ----------- | ----------------------------------------------------------------- |
| 400         | Invalid Skill ID format                                           |
| 401         | Invalid or missing API key                                        |
| 403         | Missing `SKILL_API` scope, Skills product access, or owner access |
| 404         | Skill not found                                                   |
| 429         | Rate limit exceeded                                               |
| 500         | Internal server error                                             |

<Warning>
  Deleting a Skill is permanent. Users, Agents, or Projects that relied on the Skill will no longer have those instructions available.
</Warning>

<Info>
  Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on [API Key Best Practices](/administration/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"

````