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

# DELETE /sessions/{uid}

> Deletes the given session



## OpenAPI

````yaml docs/granta-mi/granta-mi-connected-materials/2026-r1/api/integration_service.yaml DELETE /sessions/{uid}
openapi: 3.0.0
info:
  version: 1.0.0
  title: Granta Integration Service
  description: Integration Service OpenAPI
servers:
  - url: https://integration.service/api/v1/
security:
  - OpenId:
      - is_read
      - is_write
      - is_read_write
paths:
  /sessions/{uid}:
    delete:
      description: Deletes the given session
      operationId: sessions-uid-delete
      parameters:
        - $ref: '#/components/parameters/SessionUid'
        - $ref: '#/components/parameters/ReasonForSessionDeletion'
      responses:
        '204':
          description: Session object was successfully deleted
        '400':
          description: Malformed UUID or query param has invalid value
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '403':
          description: Required Session is not owned by user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '404':
          description: Required Session object not present
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
components:
  parameters:
    SessionUid:
      description: Universally Unique identifier for a session.
      name: uid
      in: path
      required: true
      schema:
        type: string
        format: uuid
    ReasonForSessionDeletion:
      description: Reason for deleting a session.
      name: reason
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/DeletionReason'
  schemas:
    HttpError:
      description: >-
        Returned by requests if an error occurs. Holds HTTP status code and
        message
      type: object
      required:
        - error
      properties:
        error:
          description: Fixed field indicating this is an error
          type: object
          required:
            - code
            - message
          properties:
            code:
              description: Text representation of Http status code category
              type: string
            message:
              description: A string describing the specific error that occurred.
              type: string
    DeletionReason:
      description: Reason for deleting a session
      type: string
      enum:
        - unspecified
        - completed
        - canceled
  securitySchemes:
    OpenId:
      type: openIdConnect
      openIdConnectUrl: https://azeww22wpoidc01.win.ansys.com/

````