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

# Delete an invitation

> Delete the invitation with the given invitation id.

<Info>Deleting an invitation will prevent the invited user from accepting it and joining the group, but it will not revoke access if the invitation has already been accepted. To revoke access for an already accepted invitation, you will need to remove the user from the group directly.</Info>


## OpenAPI

````yaml /src/autogen/users-openapi3.0.yaml delete /users/invitation/{id}
openapi: 3.1.0
info:
  description: >-
    This OpenAPI 3.1 specification describes the public API of the Qomon
    platform. It is generated from the code and serves both as documentation for
    API consumers and as a contract for future development.
  title: Qomon API Reference
  version: 0.0.1
servers:
  - description: Production
    url: https://incoming.qomon.app
security:
  - bearerAuth: []
tags:
  - description: List and manage users in the current space.
    name: Users
  - description: Create, read, update and delete teams.
    name: Teams
  - description: List roles available in the current space.
    name: Roles
  - description: Invite users by email and manage their invitations.
    name: Invitations
  - description: Send global messages to teams.
    name: Notifications
paths:
  /users/invitation/{id}:
    delete:
      tags:
        - Invitations
      summary: Delete an invitation
      description: Delete the invitation with the given invitation id.
      operationId: delete-invitation
      parameters:
        - description: Invitation ID.
          in: path
          name: id
          required: true
          schema:
            description: Invitation ID.
            examples:
              - 111
            format: int64
            minimum: 0
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusEnvelopeDeleteInvitationData'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
components:
  schemas:
    StatusEnvelopeDeleteInvitationData:
      additionalProperties: true
      properties:
        data:
          $ref: '#/components/schemas/DeleteInvitationData'
        status:
          description: Operation result.
          examples:
            - success
          type: string
      required:
        - status
        - data
      type: object
    ErrorModel:
      additionalProperties: true
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    DeleteInvitationData:
      additionalProperties: true
      properties:
        message:
          examples:
            - Invitation deleted successfully
          type: string
      required:
        - message
      type: object
    ErrorDetail:
      additionalProperties: true
      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: opaque
      description: >-
        OAuth2 access token. Pass the token in the Authorization header as
        `Bearer <token>`. The token is looked up in Redis to resolve the caller
        identity.
      scheme: bearer
      type: http

````