Actions30
- Dataset Actions
- Document Actions
- Segment Actions
- Metadata Actions
Metadata → Delete Tag
AI-generatedOverview
This node manages metadata tags within the Dify AI knowledge base, specifically allowing users to delete a tag associated with a dataset. It is useful in scenarios where you need to clean up or reorganize metadata by removing obsolete or incorrect tags from datasets. For example, if a tag was mistakenly applied to a dataset or is no longer relevant, this operation helps maintain accurate metadata by deleting that tag.
Properties
| Name | Meaning |
|---|---|
| Dataset ID | The unique identifier of the dataset from which the tag will be deleted. |
| Tag ID | The unique identifier of the tag to be deleted from the specified dataset. |
Output
The output JSON contains the result of the delete tag operation. Typically, this will confirm whether the tag deletion was successful or provide details about the deleted tag. The exact structure depends on the API response but generally includes status information and possibly the IDs involved.
No binary data output is expected for this operation.
Dependencies
- Requires an API key credential for authenticating requests to the Dify AI knowledge base service.
- The node uses the base URL and authorization token provided via credentials configured in n8n.
- Network connectivity to the Dify AI API endpoint is necessary.
Troubleshooting
Common issues:
- Invalid or missing Dataset ID or Tag ID can cause the operation to fail.
- Insufficient permissions or invalid API key may result in authorization errors.
- Attempting to delete a tag that does not exist or is not associated with the specified dataset may return an error.
Error messages:
"The operation "deleteTag" is not supported for resource "metadata": This indicates a misconfiguration or typo in the operation name.- API errors related to authentication or resource not found should be resolved by verifying credentials and input IDs.
Links and References
- Dify AI Knowledge Base API Documentation (hypothetical link for reference)
- n8n documentation on creating custom nodes