HumHub icon

HumHub

Consume HumHub API (v.0.1.8)

Actions126

Overview

This node operation deletes items from a specified folder within the HumHub platform's CFile Item Management resource. It is useful for managing file organization by removing selected items from a folder, such as cleaning up or reorganizing files in a container. For example, a user can specify a container ID and a selection of item IDs to be deleted from that folder.

Use Case Examples

  1. Deleting specific files or items from a folder in a HumHub container to maintain folder contents.
  2. Automating cleanup of outdated or unnecessary files from a project folder in HumHub.

Properties

Name Meaning
Authentication Method of authentication to use for the API request (Basic Auth or JWT Token).
ID The ID of the container (folder) from which items will be deleted.
Selection The item ID(s) in the format {type}_{id} specifying which items to delete from the folder.

Output

JSON

  • id - The ID of the container (folder) where items were deleted.
  • selection - The selection of item IDs that were deleted from the folder.

Dependencies

  • Requires authentication credentials: either Basic Auth or JWT Token for HumHub API.

Troubleshooting

  • Ensure the 'ID' parameter corresponds to a valid container ID in HumHub.
  • Verify the 'Selection' parameter is correctly formatted as {type}_{id} and refers to existing items in the folder.
  • Authentication errors may occur if credentials are missing or invalid; verify the chosen authentication method and credentials.
  • API request failures might happen if the user lacks permissions to delete items from the specified folder.

Links

Discussion