---
title: "Prune Contact Events"
method: DELETE
path: "/v1/admin_console/cleanup/contact_events"
tags: ["admin_console", "cleanup"]
---

# Prune Contact Events

`DELETE /v1/admin_console/cleanup/contact_events`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/admin_console/cleanup/contact_events`
- Auth: none declared

Prune the outbound-webhook event log.

Wire this to the daily scheduler alongside the other cleanup jobs —
the table grows with every contact change on every connected account.

## Query parameters

- `older_than_days` integer: Delete contact events older than this many days

## Headers

- `x-admin-api-key` string, nullable

## Response `200`

Successful Response

- PruneContactEventsResponse
  - `deleted_events` integer, required
  - `older_than_days` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
