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

# Delete a skill file

> Delete a file from the skill's folder. `SKILL.md` cannot be deleted — every skill needs one; change it via [Update a skill](/api-reference/skills/update-a-skill) instead.



## OpenAPI

````yaml /openapi.yaml delete /api/v1/spaces/{spaceId}/skills/{skillId}/files/{path}
openapi: 3.1.0
info:
  title: Nuwacom API
  description: API for Nuwacom application
  version: 1.0.0
servers:
  - url: https://{customer-tenant}.nuwacom.ai
    description: Nuwacom API
security:
  - bearerAuth: []
paths:
  /api/v1/spaces/{spaceId}/skills/{skillId}/files/{path}:
    delete:
      tags:
        - Skills
      summary: Delete a skill file
      description: >-
        Delete a file from the skill's folder. `SKILL.md` cannot be deleted —
        every skill needs one; change it via [Update a
        skill](/api-reference/skills/update-a-skill) instead.
      operationId: deleteApiV1SpacesBySpaceIdSkillsBySkillIdFilesByPath
      parameters:
        - in: path
          name: spaceId
          schema:
            anyOf:
              - type: string
                minLength: 2
                maxLength: 6
              - type: string
                minLength: 21
                maxLength: 21
            description: ID of the space the skill belongs to.
          required: true
        - in: path
          name: skillId
          schema:
            type: string
            format: uuid
            description: Unique ID of the skill.
          required: true
        - in: path
          name: path
          schema:
            type: string
            minLength: 1
            maxLength: 512
            pattern: ^[a-zA-Z0-9_\-./]+$
            description: >-
              Relative path of the file within the skill folder (e.g.
              "reference/format.md"). Must not contain "..", "." or empty
              segments.
          required: true
      responses:
        '204':
          description: File deleted successfully.
        '400':
          description: The path points to SKILL.md, which cannot be deleted.
        '403':
          description: >-
            The caller lacks permission to update skills in this space, or the
            skills feature is disabled.
        '404':
          description: Skill or file not found in the provided space.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````