Skip to content

Deleting all items in a collection not working #224

@gugahoi

Description

@gugahoi

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)

Image

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions