Skip to content
Skip to Content
DevelopersAPI referenceItems

Delete many items

POST
/v1/items/delete

Deletes up to 200 of the user's items in one request and one transaction, each as DELETE /v1/items/{id} would: a tombstone for sync, an item.deleted webhook, and its files removed. Ids that are not the user's live items (unknown, someone else's, already deleted) are skipped, so repeating the request is harmless. Allowed while the library is read-only over its plan's limits. An API key needs write access to items.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Request Body

application/json
  1. body
ids*array<>
Items1 <= items <= 200

Response Body

The ids that were deleted

application/json
  1. response
deleted*array<string>

The deleted ids, in id order. Skipped ids are left out.

Example Request
curl -X POST 'https://example.com/v1/items/delete' \  -H 'Content-Type: application/json' \  -d '{  "ids": [    "stringstringstringstringst"  ]}'
Example Response
{  "deleted": [    "string"  ]}