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 collection identified by a unique collection ID. It is useful when you want to permanently remove a collection and its associated data from the system. This can help in managing storage, cleaning up unused or obsolete collections, or enforcing data retention policies.

Practical examples:

  • Removing a project-specific document collection after project completion.
  • Deleting test or temporary collections created during development or testing.
  • Cleaning up collections that are no longer relevant or needed for compliance reasons.

Properties

Name Meaning
Collection ID The unique identifier of the collection to delete.
Additional Options Optional parameters for the deletion request. Currently supports:
- Timeout Timeout in seconds for the delete request (default is 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 deletion was successful or if there were any errors.

If the node supports binary data output, it is not applicable here since deleting a collection does not produce binary data.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The base URL for API requests is configured via credentials.
  • The node sends an HTTP DELETE request to the endpoint /collections/{collection_id} with optional query parameters.

Troubleshooting

  • Common issues:

    • Invalid or missing Collection ID: The operation requires a valid collection ID; ensure it is provided and correct.
    • Permission errors: The API key used must have sufficient permissions to delete collections.
    • Timeout errors: If the deletion takes longer than the specified timeout, the request may fail. Adjust the timeout as needed.
    • Network or connectivity issues: Ensure the API endpoint is reachable.
  • Error messages:

    • "Collection not found": The specified collection ID does not exist.
    • "Unauthorized" or "Forbidden": The API key lacks permission to delete the collection.
    • "Request timed out": Increase the timeout value or check network conditions.

Links and References

  • Refer to the API documentation of the service managing collections for detailed information on the delete collection endpoint.
  • n8n documentation on HTTP Request node usage and error handling.

Discussion