Craft icon

Craft

Interact with your Craft documents via the API

Collection → Delete Items

AI-generated

Summary

Delete specified items from a selected Craft collection by providing the collection ID and an array of item IDs to remove.

Inputs

  • Collection (required) — Select or enter the collection ID where items will be deleted from. This ID can be selected from a list of available collections or entered manually.
  • IDs to Delete (required) — Provide a JSON array of collection item IDs that should be deleted. For example: ["1","2"].

Output shape

a list of deletion result objects, one per input item

Each output item corresponds to one input execution and contains the API's response or error details if deletion fails.

Examples

Example 1: Delete multiple items from a Craft collection

Set the Collection parameter by selecting the collection or typing its ID. Enter an array of item IDs to delete in the 'IDs to Delete' field, e.g. ["item1", "item2"]. Execute the node to remove those items from the specified collection.

Discussion