SunLink icon

SunLink

SunLink 博客 API 完整集成节点 (自动登录)

📎 文件管理 (File) → 🗑️ 删除 (Delete)

AI-generated

Summary

Delete one or multiple files or folders on the SunLink platform by specifying their IDs.

Inputs

  • fileId (required) — ID of the single file or folder to delete (used for get, download, and delete operations but not exclusively for delete).
  • deleteIds (required) — Comma-separated list of file or folder IDs to delete.

Output shape

A single JSON object containing the server response to the delete request.

The output returns the API's deletion response for the specified IDs. Multiple IDs must be comma-separated in the 'deleteIds' parameter. The 'fileId' parameter is required for get, download, and delete contexts but deletion uses 'deleteIds' for actual IDs to remove.

Examples

Example 1: Delete files or folders from SunLink storage

Provide a comma-separated list of file/folder IDs in 'deleteIds'. The operation calls the API endpoint '/files' with HTTP DELETE method and deletes the specified resources.

Discussion