Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory > Version → Delete

AI-generated

Summary

Deletes a specific version of a file or directory in Infomaniak Kdrive.

Inputs

  • authentication — Authentication method to use for the Infomaniak API request. Defaults to OAuth2 if not specified. Select OAuth2 or API Key based on your configuration.
  • path_drive_id (required) — Identifier of the drive containing the file or directory. Must be a numeric drive ID.
  • path_file_id (required) — Identifier of the file or directory whose version will be deleted. Must be a numeric file/directory ID.
  • path_version_id (required) — Identifier of the specific version to delete. Must be a numeric version ID.
  • returnFullResponse — Boolean flag controlling the output format. When true, the full Infomaniak API response is returned; when false (default), a standard n8n item representing the deletion result is emitted.

Output shape

Depends on returnFullResponse. If false (default), emits a single n8n item indicating successful deletion. If true, returns the complete API response payload as raw data.

The operation consumes the drive ID, file ID, and version ID to construct a DELETE request via the Infomaniak API. The node's source implementation (InfomaniakKdrive.node.js and GenericFunctions.js) uses the infomaniakApiRequest helper to execute the request, consistent with the package's established API interaction pattern.

Examples

Example 1: Delete a specific version of a file using OAuth2 authentication.

Set authentication to OAuth2, provide the drive ID, file ID, and version ID. Leave returnFullResponse at its default false setting.

Links

Discussion