Skip to main content

Delete File

Delete a file from OpenAI file storage to free up space and remove unused files.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. Default: false.
warning

This node requires your own OpenAI API key. It does NOT work with Robomotion AI Credits.

Inputs

  • Connection Id - Connection identifier from Connect node.
  • File ID - OpenAI file ID to delete.

Outputs

  • Deleted - Boolean indicating if the file was successfully deleted.
  • Result - Deletion result object from OpenAI.

How It Works

Permanently deletes a file from OpenAI storage:

  1. Validates connection and file ID
  2. Sends delete request to OpenAI
  3. Confirms deletion
  4. Returns deletion status

Usage Example

Input:
- File ID: "file-abc123"

Output:
- Deleted: true
- Result: {
id: "file-abc123",
object: "file",
deleted: true
}

Use Cases

  • Storage Management: Remove old or unused files
  • Cleanup: Delete temporary files after processing
  • Cost Control: Free up storage quota

Tips

  • Deletion is permanent and cannot be undone
  • Files in use by assistants or fine-tuning jobs may not be immediately deletable
  • Use List Files to identify files to delete

Common Errors

"File ID cannot be empty"

  • Provide a valid file identifier

"Delete File is not supported with Robomotion AI Credits"

  • Use your own OpenAI API key