---
title: "Delete datastore item"
method: DELETE
path: "/api/v2/actions-datastores/{datastore_id}/items"
tags: ["Actions Datastores"]
---

# Delete datastore item

`DELETE /api/v2/actions-datastores/{datastore_id}/items`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/actions-datastores/{datastore_id}/items`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Deletes an item from a datastore by its key.

## Path parameters

- `datastore_id` string, required

## Request body

- DeleteAppsDatastoreItemRequest: Request to delete a specific item from a datastore by its primary key.
  - `data` DeleteAppsDatastoreItemRequestData: Data wrapper containing the information needed to identify and delete a specific datastore item.
    - `attributes` DeleteAppsDatastoreItemRequestDataAttributes: Attributes specifying which datastore item to delete by its primary key.
      - `id` string: Optional unique identifier of the item to delete.
      - `item_key` string, required: The primary key value that identifies the item to delete. Cannot exceed 256 characters.
    - `type` 'items', required: The resource type for datastore items.

## Response `200`

OK

- DeleteAppsDatastoreItemResponse: Response from successfully deleting a datastore item.
  - `data` DeleteAppsDatastoreItemResponseData: Data containing the identifier of the datastore item that was successfully deleted.
    - `id` string: The unique identifier of the item that was deleted.
    - `type` 'items', required: The resource type for datastore items.

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
