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

# Hard-delete a release of a private package, within 24 hours of uploading it, or with an admin grant



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json delete /api/v1/hub/packages/{owner}/{name}/releases/{version}
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/hub/packages/{owner}/{name}/releases/{version}:
    delete:
      tags:
        - Hub
      summary: >-
        Hard-delete a release of a private package, within 24 hours of uploading
        it, or with an admin grant
      operationId: hub_delete_release
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
            description: Owning user or team slug
            title: Owner
          description: Owning user or team slug
        - name: name
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
            description: Package name
            title: Name
          description: Package name
        - name: version
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
            description: >-
              An exact PEP 440 version, every upload of it if the number was
              reused in the past, or `sha256:` plus at least 12 hex digits of
              the content hash. Never a ref name: a mutable pointer shouldn't
              choose what changes
            title: Version
          description: >-
            An exact PEP 440 version, every upload of it if the number was
            reused in the past, or `sha256:` plus at least 12 hex digits of the
            content hash. Never a ref name: a mutable pointer shouldn't choose
            what changes
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Deleted'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Too Many Requests
      security:
        - HTTPBearer: []
components:
  schemas:
    Deleted:
      properties:
        deleted:
          type: boolean
          enum:
            - true
          const: true
          title: Deleted
          default: true
      type: object
      title: Deleted
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorEnvelope
    ErrorBody:
      properties:
        code:
          type: string
          title: Code
          description: Stable, machine-readable error code
        message:
          type: string
          title: Message
        details:
          type: object
          title: Details
      type: object
      required:
        - code
        - message
      title: ErrorBody
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````