Content Removal
DELETEOverview
Section titled “Overview”This endpoint allows you to permanently delete one or more objects from your Luigi’s Box search index. You specify which items to remove by providing their type and identity in the request body.
Request parameters
Section titled “Request parameters”The request body must be a JSON object containing a single root key, objects, which holds an array of simple objects identifying what to delete.
Top-level Request Structure
Section titled “Top-level Request Structure”| Parameter | Type | Required | Description |
|---|---|---|---|
objects | Array | ✓ | An array of objects to be deleted from the index. |
Object structure
Section titled “Object structure”Each object in the objects array requires only two keys to identify the content for removal.
| Parameter | Type | Required | Description |
|---|---|---|---|
identity | String | ✓ | The unique identifier of the object you want to delete. |
type | String | ✓ | The type of the object you want to delete, such as item, category, or brand. |
How to Send a Deletion Request
Section titled “How to Send a Deletion Request”The examples show how to prepare and send a request to the API to delete content.
Authentication is required for all requests. The code demonstrates how to construct the necessary headers, including Date and Authorization. The Authorization header requires a dynamically generated HMAC signature. For a detailed explanation of how to create this signature, refer to the main API Authentication guide.
Error handling
Section titled “Error handling”| HTTP Status | Description |
|---|---|
| 400 Bad Request | The request structure is invalid or the JSON is malformed. For example, an object in the array is missing the identity or type key. |
| 429 Too Many Requests | The API rate limit has been exceeded. Check the Retry-After header and see the Throttling docs. |
Related endpoints
Section titled “Related endpoints”- Content Update creates or replaces objects.
- Partial Content Update updates specific fields only.
- Update by Query performs bulk updates based on search criteria.
Was this page helpful?
Thanks.