---
title: "Remove sources from a collection"
method: DELETE
path: "/library/collections/{collectionId}/sources"
tags: ["Library"]
---

# Remove sources from a collection

`DELETE /library/collections/{collectionId}/sources`

## Request

- Base URL: `https://elicit.com/api/v2`
- URL: `https://elicit.com/api/v2/library/collections/{collectionId}/sources`
- Auth: HTTP bearer

Removes sources from a collection you own or can edit, whichever member added them. A member's own source stays in their library; a shared collection's own paper goes to the collection's trash for 30 days. Send the ids in a JSON body. `removedCount` is the number removed; an id that is not in the collection is skipped.

### Example

```bash
curl -X DELETE https://elicit.com/api/v2/library/collections/{collectionId}/sources \
  -H "Authorization: Bearer elk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"sourceIds":["8e2d4d52-3b8a-4f6c-9e1a-2c7b6d5e4f30"]}'
```

## Path parameters

- `collectionId` string, uuid, required

## Request body

- object
  - `sourceIds` string[], required: Ids of your library sources.

## Response `200`

How many memberships were removed.

- RemoveLibraryCollectionSourcesResponse
  - `removedCount` integer, required: Sources removed; ids not in the collection are skipped. A member's own source stays in their library. A shared collection's own paper moves to the collection's trash for 30 days.

## Other responses

- `400`: A malformed id, or an unknown or invalid query parameter.
- `401`: Authentication failed. The API key is missing, invalid, revoked, or expired.
- `403`: API access is unavailable on your plan, or your role does not allow this action.
- `404`: The collection does not exist or is not visible to you.
- `429`: Rate limit exceeded. More than 100 requests per minute were received from your IP address; further requests are blocked for 5 minutes.
- `500`: An unexpected error occurred. Retry reads with backoff; before retrying a write, check whether it took effect. See Error Handling for retry guidance.

## Changes

- **2026-10-16** `22847bf7e65d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/elicitlabs/apis/elicit-labs-api/changes/library/collections/:collectionId/sources/delete.md)

---

[API](https://skmtc.dev/elicitlabs/apis/elicit-labs-api.md) - [All operations](https://skmtc.dev/elicitlabs/apis/elicit-labs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elicitlabs/apis/elicit-labs-api/revisions/cbbe29509d04?raw)
