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

# Disconnect Linear

> Disconnects Linear from the organization: revokes the Linear app's token at Linear, then deletes the installation and every Linear route with it.

Use this tool when you need to:
- Stop an organization's Linear workspace from starting tasks in Aether
- Remove the Linear connection before connecting another Linear workspace

Examples:
- DELETE /orgs/{orgID}/linear/connection

Hints:
- orgID is the organization's uuid; takes no other parameters and answers 204. Disconnecting an organization with nothing installed succeeds with 204 too.
- The routes are deleted with the installation, so listLinearRoutes then answers 404 not_connected.
- When Linear does not accept the revocation, or the stored token cannot be decrypted, it answers 500 and leaves the installation mid-disconnect: still read as connected and keeping its routes, while listLinearTeams and listLinearProjects fail with 500; calling it again resumes from there.
- Use updateLinearRoute instead, with enabled false, or deleteLinearRoute to stop one route and keep the connection, and disconnectSlack or disconnectSentry for those integrations.
- Owners and admins of the organization in the path, with a session or a platform API key: a member, viewer or billing member is refused with 403 org_role_insufficient, a non-member with 403 org_membership_required, an orgID that is not a uuid with 400, and an agent host's grant with 403 agent_host_route_not_allowed.



## OpenAPI

````yaml api-reference/openapi.json DELETE /orgs/{orgID}/linear/connection
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /orgs/{orgID}/linear/connection:
    delete:
      tags:
        - linear
      summary: Disconnect Linear
      description: >-
        Disconnects Linear from the organization: revokes the Linear app's token
        at Linear, then deletes the installation and every Linear route with it.


        Use this tool when you need to:

        - Stop an organization's Linear workspace from starting tasks in Aether

        - Remove the Linear connection before connecting another Linear
        workspace


        Examples:

        - DELETE /orgs/{orgID}/linear/connection


        Hints:

        - orgID is the organization's uuid; takes no other parameters and
        answers 204. Disconnecting an organization with nothing installed
        succeeds with 204 too.

        - The routes are deleted with the installation, so listLinearRoutes then
        answers 404 not_connected.

        - When Linear does not accept the revocation, or the stored token cannot
        be decrypted, it answers 500 and leaves the installation mid-disconnect:
        still read as connected and keeping its routes, while listLinearTeams
        and listLinearProjects fail with 500; calling it again resumes from
        there.

        - Use updateLinearRoute instead, with enabled false, or
        deleteLinearRoute to stop one route and keep the connection, and
        disconnectSlack or disconnectSentry for those integrations.

        - Owners and admins of the organization in the path, with a session or a
        platform API key: a member, viewer or billing member is refused with 403
        org_role_insufficient, a non-member with 403 org_membership_required, an
        orgID that is not a uuid with 400, and an agent host's grant with 403
        agent_host_route_not_allowed.
      operationId: disconnectLinear
      parameters:
        - in: path
          name: orgID
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '204':
          description: No Content
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Gone
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Internal Server Error
components:
  schemas:
    LinearErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - agent_profile_not_found
            - bad_gateway
            - bad_request
            - cli_upgrade_required
            - client_outdated
            - conflict
            - default_actor_not_member
            - forbidden
            - gateway_timeout
            - gone
            - internal_error
            - linear_project_not_found
            - linear_team_not_found
            - method_not_allowed
            - not_acceptable
            - not_connected
            - not_found
            - not_implemented
            - payment_required
            - precondition_failed
            - project_not_found
            - project_repo_disconnected
            - rate_limited
            - request_canceled
            - request_timeout
            - request_too_large
            - route_exists
            - route_not_found
            - service_unavailable
            - unauthenticated
            - unsupported_media_type
            - validation_failed
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

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