Delete Item
Removes an item from the specified queue using the provided item ID.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Icon - The custom icon of the node.
- Inputs - The number of input ports of the node.
- Outputs - The number of output ports of the node.
Input
- Item ID - Represents the unique identifier of the item you want to delete from the queue.
How It Works
The Delete Item node permanently removes an item from a Robomotion Queue:
- Receives the Item ID of the queue item to delete
- Sends a delete request to the Robomotion Orchestrator API
- The Orchestrator removes the item from the queue permanently
- Returns success or error response
- The message passes through unchanged
Requirements
- Item ID must be provided (typically from Get Next Item or Wait Item output)
- The item must exist in the queue
- Appropriate permissions to delete from the queue
Error Handling
| Error Code | Description | Solution |
|---|---|---|
| Core.Queue.Delete.ErrOnCreate | Failed to parse node configuration | Verify node configuration is valid JSON |
| Core.Queue.Delete.OnMessage | Message parsing failed | Check input message format is valid |
| Core.Queue.Delete.OnMessage | "Get item id error" | Ensure Item ID input is provided and is a valid string |
| Core.Queue.Delete.OnMessage | HTTP request error | Check network connectivity to Robomotion Orchestrator |
| Core.Queue.Delete.OnMessage | API returned error | Verify item exists and you have permissions to delete it |
| Core.Queue.Delete.OutputMarshal | Failed to serialize output | Check message structure is valid |
Usage Examples
Example 1: Delete After Successful Processing
Remove item after it's been successfully processed:
[Get Next Item] → Output: itemId, itemData
↓
[Process Order Data]
↓
[Update Database]
↓
[Delete Item]
Input Item ID: ${itemId}
Result: Item removed from queue after successful processing
Example 2: Delete Invalid Items
Remove items that fail validation:
[Get Next Item] → Output: itemId, itemData
↓
[Validate Data]
↓ (validation failed)
[Log Error: "Invalid data format"]
↓
[Delete Item]
Input Item ID: ${itemId}
Result: Invalid item removed to prevent repeated processing
Example 3: Cleanup Old Items
Delete items based on business logic:
[Get Items] → Output: items array
↓
[Loop through items]
↓
[Check if item.createdAt > 30 days ago]
↓ (yes)
[Delete Item]
Input Item ID: ${item.id}
Result: Old items cleaned up from queue
Usage Notes
- Deletion is permanent - deleted items cannot be recovered
- Delete immediately after processing to keep queue clean
- Do not delete items that may need retry - use Update Item State instead
- Item ID typically comes from Get Next Item or Wait Item nodes
- Failed deletions will throw an error (unless Continue On Error is enabled)
- Deleting non-existent items will result in an error
Tips
- Delete items only after confirming successful processing
- For items that might need retry, use Update Item State with "Successful" status instead
- Log the Item ID before deletion for audit trail
- Use Continue On Error cautiously - failed deletions might indicate issues
- In error scenarios, consider moving items to a "failed" queue instead of deleting
- Combine with Get Items to bulk delete old or invalid items
- Don't delete items during processing - wait until completion
- Consider archiving important data before deletion
- Monitor deletion failures as they may indicate permission or connectivity issues
Related Nodes
- Get Next Item - Source of Item ID for deletion
- Update Item State - Alternative to deletion for completed items
- Get Items - For bulk deletion operations
- Add Item - For adding items to queue