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

# Archive a skill

> Archives a workspace skill: no agent loads it again, it can't change, and its key stays taken. Refused (409, naming them) while agents use it, unless `detach=true` takes it off them first. Every change goes live at once: there is no draft. A change to a skill an agent uses (`used_by`) needs 'skills:publish' as well. A Statisfy skill, and a skill with tools of its own (`has_tools`), can only be turned on or off here. A digital worker's own key can't write.



## OpenAPI

````yaml /api/statisfy-api.openapi.json delete /v1/skills/{key}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/skills/{key}:
    delete:
      tags:
        - skills
      summary: Archive a skill
      description: >-
        Archives a workspace skill: no agent loads it again, it can't change,
        and its key stays taken. Refused (409, naming them) while agents use it,
        unless `detach=true` takes it off them first. Every change goes live at
        once: there is no draft. A change to a skill an agent uses (`used_by`)
        needs 'skills:publish' as well. A Statisfy skill, and a skill with tools
        of its own (`has_tools`), can only be turned on or off here. A digital
        worker's own key can't write.
      operationId: skills_archive
      parameters:
        - description: The skill's key, from GET /v1/skills
          in: path
          name: key
          required: true
          schema:
            maxLength: 64
            type: string
        - description: >-
            Also take it off every agent it is set on: required when it is in
            use
          in: query
          name: detach
          required: false
          schema:
            default: false
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Archived'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    Archived:
      properties:
        detached:
          description: The agents it was taken off (with detach=true)
          items:
            $ref: '#/components/schemas/SkillAgent'
          title: Detached
          type: array
        key:
          title: Key
          type: string
      required:
        - key
        - detached
      title: Archived
      type: object
    SkillAgent:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The agent's id (a digital worker's, from GET /v1/digital_workers);
            null for Stella
          title: Id
        name:
          title: Name
          type: string
        type:
          description: >-
            stella; workbench (the workspace's workbench agent); digital_worker;
            or custom_agent (an Agent Studio agent)
          enum:
            - stella
            - workbench
            - digital_worker
            - custom_agent
          title: Type
          type: string
      required:
        - type
        - id
        - name
      title: SkillAgent
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.