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

# Delete plan provision

> Soft delete a plan provision by setting deleted_at timestamp. Also updates child provisions to reference the parent provision.



## OpenAPI

````yaml /api-reference/cx/swagger.json delete /packages/retirement/plans/{plan}/{year}/{version}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /packages/retirement/plans/{plan}/{year}/{version}:
    delete:
      tags:
        - packages
      summary: Delete plan provision
      description: >-
        Soft delete a plan provision by setting deleted_at timestamp. Also
        updates child provisions to reference the parent provision.
      parameters:
        - description: Plan ID
          name: plan
          in: path
          required: true
          schema:
            type: string
        - description: Provision year
          name: year
          in: path
          required: true
          schema:
            type: integer
        - description: 'Provision version (format: mm/dd/yyyy or mm-dd-yyyy)'
          name: version
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Delete result
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_packages_retirement_plans_provisions.RemovePlanProvisionResponse
        '400':
          description: Bad request - invalid plan ID, year, or version
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error - failed to remove provision
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_packages_retirement_plans_provisions.RemovePlanProvisionResponse:
      type: object
      properties:
        ok:
          type: boolean
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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