Hudu icon

Hudu

Interact with Hudu REST API

Activity Log → Delete

AI-generated

Overview

This node operation deletes activity logs from the Hudu system starting from a specified datetime. It is useful for cleaning up old or unnecessary activity logs to maintain system performance and manage storage. For example, a user can delete all activity logs before a certain date or only delete logs that are unassigned (where user_id is nil).

Use Case Examples

  1. Delete all activity logs starting from January 1, 2023.
  2. Delete only unassigned activity logs starting from a specific datetime.

Properties

Name Meaning
Datetime Starting datetime from which logs will be deleted (ISO 8601 format)
Delete Unassigned Logs Only Whether to only delete logs where user_id is nil

Output

JSON

  • success - Indicates if the deletion operation was successful
  • deletedCount - Number of activity logs deleted

Dependencies

  • Requires Hudu API credentials for authentication to perform the delete operation.

Troubleshooting

  • Ensure the datetime is provided in the correct ISO 8601 format; otherwise, the API may reject the request.
  • If 'Delete Unassigned Logs Only' is enabled but no unassigned logs exist, the operation may delete zero logs, which is expected behavior.
  • API authentication errors may occur if the Hudu API credentials are missing or invalid; verify credentials are correctly configured.

Discussion