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

# Soft delete a context pack

> Soft delete a context pack (can be recovered).



## OpenAPI

````yaml /openapi/em-runtime-utils-v2.yaml delete /utils/context-packs/{name}
openapi: 3.1.0
info:
  title: em_runtime_utils
  version: 5.27.0
servers: []
security: []
paths:
  /utils/context-packs/{name}:
    delete:
      tags:
        - context-packs
      summary: Soft delete a context pack
      description: Soft delete a context pack (can be recovered).
      operationId: soft_delete_context_pack
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            description: Context pack name
            title: Name
          description: Context pack name
        - name: X-Project-ID
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Project-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContextPackDeleteResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    ContextPackDeleteResponse:
      properties:
        id:
          type: string
          title: Id
          description: Context pack ID
        status:
          $ref: '#/components/schemas/ContextPackStatus'
          description: New status
        deleted_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Deleted At
          description: Deletion timestamp
        permanent:
          type: boolean
          title: Permanent
          description: Whether the delete was permanent
      type: object
      required:
        - id
        - status
        - permanent
      title: ContextPackDeleteResponse
      description: Response for delete operations.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorResponse
      description: Standard error response model.
    ContextPackStatus:
      type: string
      enum:
        - active
        - archived
        - deprecated
        - deleted
      title: ContextPackStatus
      description: Status of a context pack.
    ErrorBody:
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          title: Message
        details:
          additionalProperties: true
          type: object
          title: Details
        request_id:
          type: string
          title: Request Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - code
        - message
        - request_id
        - timestamp
      title: ErrorBody
      description: Error body with structured details.
    ErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - INVALID_TOKEN
        - INSUFFICIENT_PERMISSIONS
        - RESOURCE_NOT_FOUND
        - RESOURCE_ALREADY_EXISTS
        - VALIDATION_ERROR
        - RATE_LIMIT_EXCEEDED
        - SERVICE_UNAVAILABLE
        - INTERNAL_ERROR
      title: ErrorCode
      description: Standard error codes for API responses.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````