Skip to content

Content Removal

DELETE
View MD

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.

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.

ParameterTypeRequiredDescription
objectsArrayAn array of objects to be deleted from the index.

Each object in the objects array requires only two keys to identify the content for removal.

ParameterTypeRequiredDescription
identityStringThe unique identifier of the object you want to delete.
typeStringThe type of the object you want to delete, such as item, category, or brand.

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.

HTTP StatusDescription
400 Bad RequestThe 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 RequestsThe API rate limit has been exceeded. Check the Retry-After header and see the Throttling docs.