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

# Context.dev: Contextdev Purge Webdb Collection

> Purge rows by URL pattern. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Purge rows by URL pattern.

<Info>
  Tool ID: `contextdev_purge_webdb_collection`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'contextdev_purge_webdb_collection',
  {
    "collection_id": "collection_123",
    "url_match": [
      "https://example.com"
    ]
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute contextdev_purge_webdb_collection --input '{
  "collection_id": "collection_123",
  "url_match": [
    "https://example.com"
  ]
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "collection_id": "collection_123",
    "run_id": "run_123",
    "queued": true
  }
}
```

Use `deepline tools get contextdev_purge_webdb_collection --json` for the latest machine-readable contract.

## Input reference

Selects rows to permanently delete by URL.

| Name                    | Type     | Required | Default | Details                                                                                                                                    |
| ----------------------- | -------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `payload.collection_id` | `string` | Yes      | —       | Collection ID.                                                                                                                             |
| `payload.url_match`     | `array`  | Yes      | —       | URL patterns for rows to permanently delete. Supports exact URLs, `*`, `**`, and `:name` path values. Minimum items: 1. Maximum items: 50. |
| `payload.tags`          | `array`  | No       | —       | Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters. Maximum items: 20.                                               |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Selects rows to permanently delete by URL.",
    "properties": {
      "collection_id": {
        "type": "string",
        "description": "Collection ID."
      },
      "url_match": {
        "type": "array",
        "description": "URL patterns for rows to permanently delete. Supports exact URLs, `*`, `**`, and `:name` path values.",
        "minItems": 1,
        "maxItems": 50,
        "items": {
          "type": "string"
        }
      },
      "tags": {
        "type": "array",
        "description": "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
        "maxItems": 20,
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        }
      }
    },
    "required": [
      "collection_id",
      "url_match"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name                        | Type      | Required | Default | Details |
| --------------------------- | --------- | -------- | ------- | ------- |
| `result.data`               | `object`  | Yes      | —       | —       |
| `result.data.collection_id` | `string`  | Yes      | —       | —       |
| `result.data.run_id`        | `string`  | Yes      | —       | —       |
| `result.data.queued`        | `boolean` | Yes      | —       | —       |
| `result.data.key_metadata`  | `object`  | No       | —       | —       |
| `result.meta`               | `object`  | No       | —       | —       |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string"
          },
          "run_id": {
            "type": "string"
          },
          "queued": {
            "type": "boolean"
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "collection_id",
          "run_id",
          "queued"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Context.dev provider guide](/docs/providers/contextdev/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
