Overview
This node interacts with the Prepr content management API to manage content items. Specifically, for the Item - Delete operation, it allows users to delete either a specific locale version of a content item or the entire content item itself.
Common scenarios where this node is beneficial include:
- Removing outdated or incorrect localized content without affecting other locales.
- Completely deleting a content item from the system when it is no longer needed.
For example, if you have a multilingual article and want to remove only the French version, you can specify the locale and delete just that part. Alternatively, if the entire article should be removed, you can delete the whole item.
Properties
| Name | Meaning |
|---|---|
| Locale Name or ID | Select the locale of the item to delete. Choose from a list of available locales or specify an ID via expression. |
| Item ID | The unique identifier of the content item on which the delete action will be performed. |
| Delete Whole Item? | Boolean flag indicating whether to delete the entire content item (true) or just the specified locale (false). |
Output
The output is a JSON array representing the result of the delete operation:
- When deleting a locale version, the output is an empty array
[]indicating successful deletion. - When deleting the whole item, the output is also an empty array
[]upon success.
No binary data is produced by this operation.
Dependencies
- Requires an API key credential for authenticating requests to the Prepr API.
- The node makes HTTP DELETE requests to the Prepr REST API endpoints.
- The base URL used is
https://api.eu1.prepr.io/. - Proper configuration of the API authentication in n8n credentials is necessary.
Troubleshooting
Delete operation failed: This error occurs if the API response status code is not
204 No Content. Possible reasons include invalid item ID, locale, or insufficient permissions.- Verify that the
Item IDandLocaleare correct and exist in the Prepr system. - Ensure the API key has sufficient rights to delete content.
- Check network connectivity and API endpoint availability.
- Verify that the
Invalid locale or item ID: If the locale or item ID does not exist, the API may return an error or fail silently. Double-check these inputs before running the node.
Deleting whole item vs locale: Be cautious with the
Delete Whole Item?flag. Setting it to true deletes the entire content item irreversibly, while false deletes only the specified locale.
Links and References
- Prepr API Documentation
- n8n Expressions Documentation (for dynamic input values)