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

# Delete a session

> Removes a `processed` or `failed` session whose group is linked to your organization. Nothing is refunded.



## OpenAPI

````yaml /openapi.json delete /v1/sessions/{id}
openapi: 3.1.0
info:
  title: Hooper API
  version: 1.0.0
  description: >-
    Submit basketball game video and receive highlights, shots and per-player
    box scores.


    All endpoints require `Authorization: Bearer hk_prod_…`, except `GET
    /v1/pricing`, which is public. Money fields are integer **cents**.
    Timestamps are Unix seconds. Every list — top-level or embedded — is `{
    object: "list", data, has_more, total_count }`.
servers:
  - url: https://zeus.hooper.gg
    description: Production (accepts hk_prod_ keys)
security:
  - apiKey: []
tags:
  - name: Uploads
    description: Resumable video uploads to Hooper storage.
  - name: Sessions
    description: >-
      A session is one submitted game and everything the pipeline produced for
      it.
  - name: Groups
    description: The teams and groups in the Hooper app that your sessions are sent to.
  - name: Billing
    description: Prepaid credits, metered per second of video.
  - name: Webhooks
    description: Signed HTTP callbacks when a session finishes.
  - name: Events
    description: The log of every event Hooper has emitted for your organization.
paths:
  /v1/sessions/{id}:
    delete:
      tags:
        - Sessions
      summary: Delete a session
      description: >-
        Removes a `processed` or `failed` session whose group is linked to your
        organization. Nothing is refunded.
      operationId: deleteSession
      parameters:
        - $ref: '#/components/parameters/SessionId'
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletedObject'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            The session's group isn't linked to your organization
            (`group_not_linked`), or `feature_disabled` (the API is turned off
            for your organization)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            The session is still `queued` or `processing`
            (`session_not_deletable`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    SessionId:
      name: id
      in: path
      required: true
      schema:
        type: string
        example: sess_18234
  schemas:
    DeletedObject:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
        deleted:
          type: boolean
          const: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - insufficient_credits
                - rate_limit_error
                - api_error
            code:
              type: string
              example: parameter_invalid
            message:
              type: string
            param:
              type: string
              description: The request field the error refers to, when there is one.
              example: source.url
  responses:
    Unauthorized:
      description: Missing, invalid, revoked or wrong-environment API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: No such object for this organization
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: More than 60 requests per minute for this key
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: hk_prod_…
      description: >-
        API key issued by Hooper for your organization. There is one
        environment, production.

````

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