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

# Delete

> Delete the specified GitHub Connection.



## OpenAPI

````yaml DELETE /api/v1/app-connections/github/{connectionId}
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/app-connections/github/{connectionId}:
    delete:
      tags:
        - App Connections
      description: Delete the specified GitHub Connection.
      operationId: deleteGitHubAppConnection
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: connectionId
          required: true
          description: The ID of the GitHub Connection to be deleted.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  appConnection:
                    anyOf:
                      - type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          name:
                            type: string
                          description:
                            type: string
                            nullable: true
                          version:
                            type: number
                            default: 1
                          orgId:
                            type: string
                            format: uuid
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                          isPlatformManagedCredentials:
                            type: boolean
                            default: false
                            nullable: true
                          gatewayId:
                            type: string
                            format: uuid
                            nullable: true
                          projectId:
                            type: string
                            nullable: true
                          isAutoRotationEnabled:
                            type: boolean
                            default: false
                          gatewayPoolId:
                            type: string
                            format: uuid
                            nullable: true
                          rotation:
                            type: object
                            properties:
                              lastRotationMessage:
                                type: string
                                nullable: true
                                description: The message from the last rotation attempt.
                              rotationInterval:
                                type: number
                                description: >-
                                  The interval in days between credential
                                  rotations.
                              nextRotationAt:
                                type: string
                                format: date-time
                                nullable: true
                                description: The next scheduled rotation time.
                              rotationStatus:
                                type: string
                                enum:
                                  - success
                                  - failed
                                description: The status of the last rotation attempt.
                              rotateAtUtc:
                                type: object
                                properties:
                                  hours:
                                    type: number
                                    description: The hour (0-23) at which to rotate.
                                  minutes:
                                    type: number
                                    description: The minute (0-59) at which to rotate.
                                required:
                                  - hours
                                  - minutes
                                additionalProperties: false
                                description: >-
                                  The UTC time of day at which rotation should
                                  occur.
                            required:
                              - rotationInterval
                              - rotationStatus
                              - rotateAtUtc
                            additionalProperties: false
                            description: >-
                              The credential rotation configuration, if
                              configured.
                          credentialsHash:
                            type: string
                          project:
                            type: object
                            properties:
                              name:
                                type: string
                              id:
                                type: string
                              type:
                                type: string
                              slug:
                                type: string
                            required:
                              - name
                              - id
                              - type
                              - slug
                            additionalProperties: false
                            nullable: true
                          app:
                            type: string
                            enum:
                              - github
                          method:
                            type: string
                            enum:
                              - github-app
                          credentials:
                            type: object
                            properties:
                              instanceType:
                                anyOf:
                                  - type: string
                                    enum:
                                      - server
                                  - type: string
                                    enum:
                                      - cloud
                              host:
                                type: string
                            additionalProperties: false
                        required:
                          - id
                          - name
                          - orgId
                          - createdAt
                          - updatedAt
                          - app
                          - method
                          - credentials
                        additionalProperties: false
                        title: GitHub (GitHub App)
                      - type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          name:
                            type: string
                          description:
                            type: string
                            nullable: true
                          version:
                            type: number
                            default: 1
                          orgId:
                            type: string
                            format: uuid
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                          isPlatformManagedCredentials:
                            type: boolean
                            default: false
                            nullable: true
                          gatewayId:
                            type: string
                            format: uuid
                            nullable: true
                          projectId:
                            type: string
                            nullable: true
                          isAutoRotationEnabled:
                            type: boolean
                            default: false
                          gatewayPoolId:
                            type: string
                            format: uuid
                            nullable: true
                          rotation:
                            type: object
                            properties:
                              lastRotationMessage:
                                type: string
                                nullable: true
                                description: The message from the last rotation attempt.
                              rotationInterval:
                                type: number
                                description: >-
                                  The interval in days between credential
                                  rotations.
                              nextRotationAt:
                                type: string
                                format: date-time
                                nullable: true
                                description: The next scheduled rotation time.
                              rotationStatus:
                                type: string
                                enum:
                                  - success
                                  - failed
                                description: The status of the last rotation attempt.
                              rotateAtUtc:
                                type: object
                                properties:
                                  hours:
                                    type: number
                                    description: The hour (0-23) at which to rotate.
                                  minutes:
                                    type: number
                                    description: The minute (0-59) at which to rotate.
                                required:
                                  - hours
                                  - minutes
                                additionalProperties: false
                                description: >-
                                  The UTC time of day at which rotation should
                                  occur.
                            required:
                              - rotationInterval
                              - rotationStatus
                              - rotateAtUtc
                            additionalProperties: false
                            description: >-
                              The credential rotation configuration, if
                              configured.
                          credentialsHash:
                            type: string
                          project:
                            type: object
                            properties:
                              name:
                                type: string
                              id:
                                type: string
                              type:
                                type: string
                              slug:
                                type: string
                            required:
                              - name
                              - id
                              - type
                              - slug
                            additionalProperties: false
                            nullable: true
                          app:
                            type: string
                            enum:
                              - github
                          method:
                            type: string
                            enum:
                              - oauth
                          credentials:
                            type: object
                            properties:
                              instanceType:
                                anyOf:
                                  - type: string
                                    enum:
                                      - server
                                  - type: string
                                    enum:
                                      - cloud
                              host:
                                type: string
                            additionalProperties: false
                        required:
                          - id
                          - name
                          - orgId
                          - createdAt
                          - updatedAt
                          - app
                          - method
                          - credentials
                        additionalProperties: false
                        title: GitHub (OAuth)
                      - type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          name:
                            type: string
                          description:
                            type: string
                            nullable: true
                          version:
                            type: number
                            default: 1
                          orgId:
                            type: string
                            format: uuid
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                          isPlatformManagedCredentials:
                            type: boolean
                            default: false
                            nullable: true
                          gatewayId:
                            type: string
                            format: uuid
                            nullable: true
                          projectId:
                            type: string
                            nullable: true
                          isAutoRotationEnabled:
                            type: boolean
                            default: false
                          gatewayPoolId:
                            type: string
                            format: uuid
                            nullable: true
                          rotation:
                            type: object
                            properties:
                              lastRotationMessage:
                                type: string
                                nullable: true
                                description: The message from the last rotation attempt.
                              rotationInterval:
                                type: number
                                description: >-
                                  The interval in days between credential
                                  rotations.
                              nextRotationAt:
                                type: string
                                format: date-time
                                nullable: true
                                description: The next scheduled rotation time.
                              rotationStatus:
                                type: string
                                enum:
                                  - success
                                  - failed
                                description: The status of the last rotation attempt.
                              rotateAtUtc:
                                type: object
                                properties:
                                  hours:
                                    type: number
                                    description: The hour (0-23) at which to rotate.
                                  minutes:
                                    type: number
                                    description: The minute (0-59) at which to rotate.
                                required:
                                  - hours
                                  - minutes
                                additionalProperties: false
                                description: >-
                                  The UTC time of day at which rotation should
                                  occur.
                            required:
                              - rotationInterval
                              - rotationStatus
                              - rotateAtUtc
                            additionalProperties: false
                            description: >-
                              The credential rotation configuration, if
                              configured.
                          credentialsHash:
                            type: string
                          project:
                            type: object
                            properties:
                              name:
                                type: string
                              id:
                                type: string
                              type:
                                type: string
                              slug:
                                type: string
                            required:
                              - name
                              - id
                              - type
                              - slug
                            additionalProperties: false
                            nullable: true
                          app:
                            type: string
                            enum:
                              - github
                          method:
                            type: string
                            enum:
                              - pat
                          credentials:
                            type: object
                            properties:
                              instanceType:
                                anyOf:
                                  - type: string
                                    enum:
                                      - server
                                  - type: string
                                    enum:
                                      - cloud
                              host:
                                type: string
                            additionalProperties: false
                        required:
                          - id
                          - name
                          - orgId
                          - createdAt
                          - updatedAt
                          - app
                          - method
                          - credentials
                        additionalProperties: false
                        title: GitHub (Personal Access Token)
                required:
                  - appConnection
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````