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

# Detach Moment Criterion

> Removes the attachment; its moments and findings leave collection enumeration. Underlying runs persist as job history.



## OpenAPI

````yaml DELETE /collections/{collection_id}/moment-criteria/{attachment_id}
openapi: 3.0.0
info:
  title: Cloudglue API
  description: API for Cloudglue
  license:
    name: Apache License 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 0.7.23
servers:
  - url: https://api.cloudglue.dev/v1
security:
  - bearerAuth: []
paths:
  /collections/{collection_id}/moment-criteria/{attachment_id}:
    delete:
      tags:
        - Collections
      summary: Detach a criterion from a moments collection
      description: >-
        Removes the attachment; its moments and findings leave collection
        enumeration. Underlying runs persist as job history.
      operationId: deleteCollectionMomentCriterion
      parameters:
        - name: collection_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: attachment_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Detached.
          content:
            application/json:
              schema:
                type: object
                properties:
                  attachment_id:
                    type: string
                    format: uuid
                  deleted:
                    type: boolean
                required:
                  - attachment_id
                  - deleted
        '400':
          description: Not a moments collection
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Attachment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - error
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````