Actions41
- Step/Generation Actions
- Thread Actions
- User Actions
- Dataset Actions
- Experiment Actions
- File Actions
- Prompt Actions
- Score Actions
Overview
This node integrates with the Literal AI API to manage datasets and their contents. Specifically, for the Dataset - Delete operation, it deletes a dataset identified by its unique ID. This is useful in scenarios where you want to programmatically remove obsolete or unwanted datasets from your Literal AI environment to keep data organized and relevant.
Practical examples include:
- Automating cleanup of test or temporary datasets after processing.
- Removing datasets that are no longer needed as part of a data lifecycle management workflow.
- Integrating dataset deletion into larger automation pipelines that manage AI training or evaluation data.
Properties
| Name | Meaning |
|---|---|
| Dataset ID | The unique identifier of the dataset to delete. This is a required string input. |
Output
The output JSON contains a single field:
content: This holds the response from the Literal AI API after attempting to delete the dataset. It typically includes confirmation of deletion or details about the deleted dataset.
No binary data output is produced by this operation.
Example output structure:
{
"content": {
// API response confirming deletion or related info
}
}
Dependencies
- Requires an API key credential for the Literal AI API to authenticate requests.
- The node uses the official Literal AI client library (
@literalai/client) to interact with the API. - Proper configuration of the API key credential within n8n is necessary before using this node.
Troubleshooting
Common issues:
- Invalid or missing Dataset ID: Ensure the Dataset ID provided is correct and exists in your Literal AI account.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
- Network or API downtime: Check connectivity and Literal AI service status if requests fail unexpectedly.
Error messages:
- Errors returned from the API will be included in the node's output if "Continue On Fail" is enabled.
- Typical error messages might indicate "Dataset not found" if the ID does not exist, or "Unauthorized" if credentials are invalid.
Resolution tips:
- Double-check the Dataset ID input.
- Reconfigure or update the API key credential.
- Review Literal AI API documentation for permission requirements.
Links and References
- Literal AI API Documentation (general reference for API endpoints and usage)
- n8n Documentation on Credentials (for setting up API keys)
- Literal AI Client Library on npm