---
title: "Detach a criterion from a moments collection"
method: DELETE
path: "/collections/{collection_id}/moment-criteria/{attachment_id}"
tags: ["Collections"]
---

# Detach a criterion from a moments collection

`DELETE /collections/{collection_id}/moment-criteria/{attachment_id}`

## Request

- Base URL: `https://api.cloudglue.dev/v1`
- URL: `https://api.cloudglue.dev/v1/collections/{collection_id}/moment-criteria/{attachment_id}`
- Auth: HTTP bearer

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

## Path parameters

- `collection_id` string, uuid, required
- `attachment_id` string, uuid, required

## Response `200`

Detached.

- object
  - `attachment_id` string, uuid, required
  - `deleted` boolean, required

## Other responses

- `400`: Not a moments collection
- `404`: Attachment not found
- `500`: Internal server error

## Changes

- **2026-10-30** `23d3f240819f`: 3 info
  - added the optional property `code` to the response with the `400` status
  - added the optional property `code` to the response with the `404` status
  - added the optional property `code` to the response with the `500` status
- **2026-08-22** `d2a5205fc779`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cloudglue/apis/cloudglue-api/changes/collections/:collection_id/moment-criteria/:attachment_id/delete.md)

---

[API](https://skmtc.dev/cloudglue/apis/cloudglue-api.md) - [All operations](https://skmtc.dev/cloudglue/apis/cloudglue-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudglue/apis/cloudglue-api/revisions/23d3f240819f?raw)
