I'm trying to use the deleteItems call to delete all items in a collection but getting a validation error response from the API.
await this.webflow.collections.items.deleteItems(collectionId)

The documentation and the typescript client say items is optional so I don't understand why this would not be allowed.
API Docs: https://developers.webflow.com/data/reference/cms/collection-items/staged-items/delete-items
Request Type Definition:
|
export interface ItemsDeleteItemsRequest { |
|
items?: Webflow.collections.ItemsDeleteItemsRequestItemsItem[]; |
|
} |
Is it possible to bulk delete all items from a collection? And if so, how can this be achieved?
I'm trying to use the
deleteItemscall to delete all items in a collection but getting a validation error response from the API.The documentation and the typescript client say
itemsis optional so I don't understand why this would not be allowed.API Docs: https://developers.webflow.com/data/reference/cms/collection-items/staged-items/delete-items
Request Type Definition:
js-webflow-api/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.ts
Lines 11 to 13 in 4a5ff59
Is it possible to bulk delete all items from a collection? And if so, how can this be achieved?