h2oGPTe icon

h2oGPTe

h2oGPTe is an AI-powered search assistant for your internal teams to answer questions gleaned from large volumes of documents, websites and workplace content.

Actions198

Overview

This node operation deletes a document identified by its unique Document ID from the system. It is useful in scenarios where you need to remove outdated, incorrect, or no longer needed documents from your document management or knowledge base system. For example, if a document contains sensitive information that should no longer be accessible, or if a document was uploaded by mistake, this operation allows you to permanently delete it.

Properties

Name Meaning
Document ID The unique identifier of the document to delete.
Additional Options Optional settings for the deletion request:
- Timeout: Time in seconds to wait before the request times out (default 300 seconds).

Output

The output will contain the JSON response from the API indicating the result of the delete operation. Typically, this will confirm whether the document was successfully deleted or provide error details if the deletion failed.

No binary data is expected as output for this operation.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The node sends an HTTP DELETE request to the endpoint /documents/{document_id}.
  • The user must have appropriate permissions to delete documents in the connected system.
  • Optionally supports a timeout parameter to control how long the request waits before timing out.

Troubleshooting

  • Common Issues:

    • Invalid or missing Document ID: Ensure the Document ID provided exists and is correct.
    • Permission errors: The API key or user credentials may lack permission to delete the document.
    • Timeout errors: If the deletion takes longer than the specified timeout, increase the timeout value.
    • Network or connectivity issues: Verify network access to the API endpoint.
  • Error Messages:

    • "Document not found": The specified Document ID does not exist.
    • "Unauthorized" or "Forbidden": Insufficient permissions; check API key and user roles.
    • "Request timed out": Increase the timeout setting or check server responsiveness.

Links and References

  • Refer to the API documentation of the document management system for detailed information on the delete document endpoint.
  • Consult your platform's authentication and permission setup guides to ensure proper access rights.

Discussion