Sapience icon

Sapience

Sapience API integration

File → Delete

AI-generated

Summary

Delete a file by its ID from the Sapience system.

Inputs

  • fileId (required) — The unique identifier of the file to delete.
  • confirmDeletion — Whether to confirm the deletion action.

Output shape

Array of objects with fields: success (boolean), deletedFileId (string), message (string), plus the raw API response.

On success, success is true, deletedFileId matches the provided fileId, and message is 'File deleted successfully'. Errors include 404 (file not found) and 403 (insufficient permissions).

Examples

Example 1: Delete a file without extra confirmation

Set File ID to the target file's UID, leave Confirm Deletion unchecked.

Example 2: Delete with confirmation

Set File ID and enable Confirm Deletion.

Links

Discussion