DevelopersAPI referenceItems
Delete many items
POST
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.
bearerheader
AuthorizationBearer <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.
application/json- body
ids*array<>Items
1 <= items <= 200The ids that were deleted
application/json- response
deleted*array<string>The deleted ids, in id order. Skipped ids are left out.
curl -X POST 'https://example.com/v1/items/delete' \ -H 'Content-Type: application/json' \ -d '{ "ids": [ "stringstringstringstringst" ]}'Example Response
{ "deleted": [ "string" ]}