onOffice icon

onOffice

onOffice custom node for n8n

Estate → Delete Files

AI-generated

Overview

This node operation deletes files associated with an estate resource in the onOffice system. It is useful for managing and cleaning up files linked to real estate entries, such as removing outdated or incorrect documents.

Use Case Examples

  1. Deleting a specific file linked to a property listing by providing its file ID.
  2. Removing multiple files related to an estate to maintain organized and up-to-date records.

Properties

Name Meaning
File ID The unique identifier of the file to be deleted. This is a required numeric input.
Relation Type Specifies the type of relation for the file, which in this case is fixed to 'Estate' to indicate the file is related to an estate resource.

Output

JSON

  • success - Indicates whether the file deletion was successful (true or false).
  • fileId - The ID of the file that was requested to be deleted.

Dependencies

  • Requires an API key credential for onOffice API authentication.

Troubleshooting

  • Ensure the provided File ID exists and is associated with the estate resource; otherwise, the deletion will fail.
  • Verify that the API credentials are valid and have sufficient permissions to delete files.
  • Common error messages may include 'File not found' if the File ID is incorrect, or 'Unauthorized' if the API key lacks proper access rights.

Discussion