AIGC网盘

与AIGC网盘进行文件操作的集成节点

Overview

This node integrates with the AIGC Network Disk service to perform file management operations such as listing files, uploading files (from local binary data or external URLs), retrieving file information, downloading files, deleting single files, and batch deleting multiple files.

The batch delete files operation allows users to permanently delete multiple files at once by specifying a comma-separated list of file IDs. This is useful for cleaning up storage space or removing outdated or unwanted files in bulk.

Practical examples:

  • Automatically deleting a set of temporary files after processing.
  • Cleaning up user-uploaded files that are no longer needed.
  • Managing large numbers of files efficiently by batch operations instead of one-by-one deletions.

Properties

Name Meaning
文件ID列表 Comma-separated list of file IDs to be deleted (e.g., "1,2,3,4").
确认删除 Boolean flag to confirm deletion; must be true to proceed with permanent deletion.

Output

The output JSON object for the batch delete operation includes:

  • success: Boolean indicating if the request was successful.
  • data: The raw response from the API containing details about the deletion results.
  • operation: The string "batchDeleteFiles" indicating the performed operation.
  • statistics: An object summarizing the deletion results:
    • total: Total number of requested files to delete.
    • success: Number of files successfully deleted.
    • failed: Number of files that failed to delete.
    • successRate: Percentage of successful deletions as a formatted string (e.g., "90.0%").
  • requested_files: Array of file IDs that were requested for deletion.
  • message: Human-readable summary message indicating success or partial failure.

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for authenticating requests to the AIGC Network Disk API.
  • The node uses HTTP requests authenticated via n8n's credential system to communicate with the remote service.
  • No additional environment variables are explicitly required beyond the API authentication setup.

Troubleshooting

  • Missing confirmation error: If the "确认删除" (confirm deletion) property is not set to true, the node will throw an error preventing accidental permanent deletion. Ensure this is checked before running.
  • Empty or invalid file ID list: The node requires a non-empty, valid comma-separated list of file IDs. Errors occur if the list is empty or improperly formatted.
  • Too many files: The node limits batch deletion to a maximum of 100 files per request. Exceeding this limit causes an error.
  • API errors: Common HTTP status codes returned by the API include:
    • 400: Bad request, often due to invalid file ID format.
    • 401: Unauthorized, indicating invalid or expired API token.
    • 403: Forbidden, lacking permission to delete some files (only own uploads can be deleted).
    • 500+: Server errors, suggesting retry after some time.
  • Network issues: Timeouts or connection failures may cause errors; verify network connectivity and API availability.

To resolve errors:

  • Confirm the deletion checkbox is enabled.
  • Validate the file ID list format.
  • Check API credentials and permissions.
  • Retry on server errors or network issues.

Links and References

Discussion