---
updatedAt: 2026-06-24T16:51:31.000Z
agentTools:
  projectIndex: https://marketing.developer.dotdigital.com/llms.txt
---

# Empties an Insight data collection

Deletes all records from the specified Insight data collection but not the collection itself, so further data can be added without removing dependencies to product recommendations, campaigns, or segments. <br/><br/>
**Notes:**
* The deletion is asynchronous progress can be monitored by calling [getAsyncStatus](/reference/getasyncstatus)
* If you empty a contact scoped Insight data collection then all data for all contacts in that collection will be removed

<span class="callRateLow"></span>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Insight data service",
    "description": "Manage Insight data collections and records at both account and contact level. Use this API to bulk-import records via asynchronous upsert, retrieve and update individual records, create and delete collections, empty collections, and poll the status of import or asynchronous operations. Insight data makes structured behavioural and transactional data — such as orders, product catalogues, and web activity — available to drive personalisation, segmentation, and product recommendations across your campaigns.\n",
    "version": "3.3.1"
  },
  "externalDocs": {
    "description": "Learn more about Dotdigital APIs",
    "url": "https://developer.dotdigital.com"
  },
  "servers": [
    {
      "url": "https://{region}-api.dotdigital.com",
      "variables": {
        "region": {
          "description": "The Dotdigital region id your account belongs to",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "default": "r1"
        }
      }
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/insightData/v3/collections/{collectionName}/empty": {
      "delete": {
        "summary": "Empties an Insight data collection",
        "description": "Deletes all records from the specified Insight data collection but not the collection itself, so further data can be added without removing dependencies to product recommendations, campaigns, or segments. <br/><br/>\n**Notes:**\n* The deletion is asynchronous progress can be monitored by calling [getAsyncStatus](/reference/getasyncstatus)\n* If you empty a contact scoped Insight data collection then all data for all contacts in that collection will be removed",
        "operationId": "delEmptyAnyInsightDataCollection",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "Insight data collection name",
            "required": true,
            "schema": {
              "maxLength": 255,
              "pattern": "(^[-A-Za-z_][-A-Za-z0-9_]{1,255}$)",
              "type": "string"
            }
          },
          {
            "name": "x-ddg-integration-token",
            "in": "header",
            "description": "If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.com/docs/verified-integration-tracking) here.",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "5a96bc79-19a7-4544-973b-e2da0c9136f9"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Empty request accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/asyncJobId"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "example": {
                  "errorCode": "insightData:invalidId",
                  "description": "The collectionName value 'my collection' is invalid"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "examples": {
                  "collectionNotFound": {
                    "summary": "Collection not found",
                    "value": {
                      "errorCode": "insightData:collectionNotFound",
                      "description": "The collection could not be found",
                      "details": [
                        {
                          "item": "myOrders",
                          "description": "Not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "asyncJobId": {
        "required": [
          "jobId"
        ],
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "description": "The unique asynchronous job id",
            "example": "e036d11f-15be-4497-8dee-5ca210abeca6"
          }
        }
      },
      "errorResponse": {
        "required": [
          "description",
          "errorCode"
        ],
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string",
            "description": "Unique error code"
          },
          "description": {
            "type": "string",
            "description": "Description of the issue"
          },
          "details": {
            "type": "array",
            "items": {
              "required": [
                "description",
                "item"
              ],
              "type": "object",
              "properties": {
                "item": {
                  "type": "string",
                  "description": "Item the error is associated with, for example, field name, unique identifier for an entity or item in batch"
                },
                "description": {
                  "type": "string",
                  "description": "Description of the error"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-samples-languages": [
    "curl",
    "csharp",
    "java",
    "javascript",
    "node",
    "python",
    "php",
    "ruby"
  ]
}
```

# Sibling pages

* [Retrieve the status of an asynchronous request](https://marketing.developer.dotdigital.com/reference/getasyncstatus.md)
* [Lists all Insight data collections](https://marketing.developer.dotdigital.com/reference/getallinsightdatacollections.md)
* [Creates an Insight data collection](https://marketing.developer.dotdigital.com/reference/postcreateinsightdatacollection.md)
* [Gets the JSON schema for an Insight data collection](https://marketing.developer.dotdigital.com/reference/getinsightdatacollectionschema.md)
* [Deletes an Insight data collection](https://marketing.developer.dotdigital.com/reference/delinsightdatacollection.md)